How to get server-specific timezone offsets?
AnsweredHi there,
We need to get the time zone offset for each server on a VMS, and we have tried using the 'timeZoneOffset' field from the ec2/getTimeOfServers API as well as the 'timezoneUtcOffset' field from the ec2/getMediaServersEx API. However, we have noticed that both of these fields give different values for each server and are wondering how these two fields are computed and what the difference between them is?
Thanks for your help!
-
Andrey Terentyev thank you for the reply! How do we get access to the /rest/v2/ APIs? Is there documentation for them? Are they GET or POST requests?
-
Hi,
I guess, first of all, you should upgrade to the latest version 5.1.0.37133.
https://meta.nxvms.com/downloads/releases
The API documentation is available in the web interface of the Server and in the Cloud here
-
Andrey Terentyev Thanks for pointing me towards the documentation!
- However, in the /rest/v2/servers API documentation I don't see the field 'timeZoneUTCOffset'?
- Also, is there a reason why I might get inconsistent values for the two deprecated APIs I mentioned earlier? We would prefer to be able to get the server time for earlier versions as well
Thanks for your help!
-
Hello,
We would prefer to be able to get the server time for earlier versions as well
Even if there is a reason or several, we don't fix deprecated APIs and don't support issue related to deprecated API if resolvable with the new API.
Encourage you to update to the newest version and to use the new API.
Please sign in to leave a comment.
Comments
5 comments