Skip to content

Conversation

@richardjrossiii
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait what? Seconds?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops good catch.

@richardjrossiii richardjrossiii force-pushed the richardross.timezone.fix branch from bbba380 to a85b7f4 Compare January 6, 2016 01:11
… 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.
@hallucinogen
Copy link
Contributor

LGTM!

richardjrossiii added a commit that referenced this pull request Jan 6, 2016
Made TimeZone string generation locale-agnostic for Windows Phone and Unity.
@richardjrossiii richardjrossiii merged commit 4fc5be3 into master Jan 6, 2016
@richardjrossiii richardjrossiii deleted the richardross.timezone.fix branch January 6, 2016 18:40
Copy link
Contributor

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?

Copy link
Contributor Author

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....

Copy link
Contributor Author

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.

@meneses-pt
Copy link

How can I know in what version this fix goes in?

@richardjrossiii
Copy link
Contributor Author

@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.

@bnham
Copy link

bnham commented Jan 6, 2016

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.

@richardjrossiii richardjrossiii added this to the 1.7.0 milestone Jan 8, 2016
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

Successfully merging this pull request may close these issues.

ParseInstallation.CurrentInstallation.SaveAsync() not working when device is not in English.

6 participants