Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the correct format to set "UTC offset" timezone for NSG Location? #3

Open
hellt opened this issue Apr 5, 2017 · 6 comments

Comments

@hellt
Copy link

hellt commented Apr 5, 2017

As per VSD API Doc for Location object we can use both UTC/GMT offset notation for timezones.

While I can manage to set GMT offset value in this way GMT+03:00 I cant succeed with UTC offset passed in the same manner.

image

If the GMT is the only way to set offsets, should we reflect this in the parameter description, or give an example how to pass offsets for both variants?

@hellt hellt changed the title What is the correct format to set "UTC offseted" timezone for NSG Location? What is the correct format to set "UTC offsetted" timezone for NSG Location? Apr 5, 2017
@hellt hellt changed the title What is the correct format to set "UTC offsetted" timezone for NSG Location? What is the correct format to set "UTC offset" timezone for NSG Location? Apr 5, 2017
@pdellaert
Copy link
Member

Best way of figuring this out is to open a VSD and add ?debug at the end (for instance: https://10.189.1.60:8443?debug). When opening the developer JS console, you'll see the exact API calls being made. That way you can configure the above information from the UI, see what API call is being made, and deduce the timeZoneID field from that call.

@hellt
Copy link
Author

hellt commented Apr 5, 2017

Right, but the question was "How to initially compose the string which will set UTC offset?"
If the only offset format available with is the one that goes as GMT+hh:mm then maybe it will be nice to clarify this in a doc.

(Since UTC+hh:mm is not compatible with VSD API)

@pdellaert
Copy link
Member

Have you tried with the actual location information, for instance Europe/Brussels
(list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)

@hellt
Copy link
Author

hellt commented Apr 5, 2017 via email

@pdellaert
Copy link
Member

Not sure what exactly works, but i'm just looking at what the documentation says :). Not sure if UTC values will work, but it's worth a try

@hellt
Copy link
Author

hellt commented Apr 6, 2017

Checked other variants of passing UTC offset. None of them worked.
So to sum it up:
Citing VSD API Docs for Location obj:

Time zone in which the Gateway is located. This can be in the form of a UTC/GMT offset, continent/city location, or country/region.

Not entirely correct. I could not find a way to pass a UTC offset by means of UTC+<offset>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants