in Education by
Problem. I need a way to find Starteam server time through Starteam Java SDK 8.0. Version of server is 8.0.172 so method Server.getCurrentTime() is not available since it was added only in server version 9.0. Motivation. My application needs to use views at specific dates. So if there's some difference in system time between client (where the app is running) and server then obtained views are not accurate. In the worst case the client's requested date is in the future for server so the operation results in exception. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
After some investigation I haven't found any cleaner solution than using a temporary item. My app requests the item's time of creation and compares it with local time. Here's the method I use to get server time: public Date getCurrentServerTime() { Folder rootFolder = project.getDefaultView().getRootFolder(); Topic newItem = (Topic) Item.createItem(project.getTypeNames().TOPIC, rootFolder); newItem.update(); newItem.remove(); newItem.update(); return newItem.getCreatedTime().createDate(); }

Related questions

0 votes
    Difference between Server-Side AJAX framework and Client-side AJAX framework?...
asked Dec 31, 2020 in Technology by JackTerrance
0 votes
    Calculate the mass of ascorbic acid ( Vitamin C,C6H8O6) to be dissolved in 75g of acetic acid to lower its melting ... .Kf=3.9Kkgmol-1 Select the correct answer from above options...
asked Jan 5, 2022 in Education by JackTerrance
0 votes
    Calculate the mass percentage of aspirin (C9H8O4) in acetonitrile (CHM3CN) when 6.5g of C9H8O4 is dissolved in 450g of CHM3CN . Select the correct answer from above options...
asked Jan 5, 2022 in Education by JackTerrance
0 votes
    Calculate the energy stored per unit volume in a dielectric medium due to polarisation when P = ... by,electromagnetic theory engineering physics,electromagnetic theory nptel...
asked Nov 11, 2021 in Education by JackTerrance
0 votes
    The two types of Service Discovery includes Client-side discovery and server-side discovery. A. True B. False...
asked Jan 11, 2023 in Technology by JackTerrance
0 votes
    In the transfer of file between server and client, if the transmission rates along the path is 10Mbps, 20Mbps, 30Mbps, ... ___________. A. 20Mbps B. 10Mbps C. 40Mbps D. 50Mbps...
asked Jan 8, 2023 in Technology by JackTerrance
0 votes
    I am trying to create a pluggable database and am executing commands through sqldeveloper. For enabling the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 22, 2022 in Education by JackTerrance
0 votes
    I want to send files asynchronously. I got on sending a file client->server->another client, but if ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 17, 2022 in Education by JackTerrance
0 votes
    I want to send files asynchronously. I got on sending a file client->server->another client, but if ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 6, 2022 in Education by JackTerrance
0 votes
    I have a user interface in .net which needs to receive data from a server, on a request/reply/ ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
...