-
-
Notifications
You must be signed in to change notification settings - Fork 261
Made TimeZone string generation locale-agnostic for Windows Phone and Unity. #145
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait what? Seconds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops good catch.
bbba380 to
a85b7f4
Compare
… Unity. Previously, TimeZone string generation that we sent along with ParseInstallation was dependent upon the CurrentCulture of the device being set to the english locale (as StandardName is localized, WHAT?!) Our new, fancy TimeZone string is now generated agnostically of the current device locale. There is potential for information about the specific region of the time zone to be lost here, but most applications should not require this. This should fix #138.
a85b7f4 to
e076b09
Compare
|
LGTM! |
Made TimeZone string generation locale-agnostic for Windows Phone and Unity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, shouldn't this be Etc/GMT{0}{1}..., or simply GMT{0}{1}... will work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me do a quick REST test and I'll let you know....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, you're correct, except our backend only supports Etc/GMT+1 (no minutes)... So maybe back to the drawing board. Damn.
|
How can I know in what version this fix goes in? |
|
@meneses-pt Sadly this fix wasn't fully working to begin with, and we're going to be reverting it. We'll keep your issue (#138) updated as we move forward. |
|
It seems like first you should first try and see if there's a match the standard name => iana name dictionary, then you should try this UTC offset thing. Because the UTC offset is not the correct time zone as it doesn't contain daylight savings time info. |
Previously, TimeZone string generation that we sent along with ParseInstallation was dependent upon the
CurrentCultureof the device being set to the english locale (asStandardNameis localized, WHAT?!)Our new, fancy TimeZone string is now generated agnostically of the current device locale. There is potential for information about the specific region of the time zone to be lost here, but most applications
should not require this.
This should fix #138.