Skip to content

Handle locales with the same daylight savings time start and end #1220

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

Merged
merged 1 commit into from
Aug 23, 2019

Conversation

joshpeterson
Copy link

If the first and second transition DateTime objects are the same,
ValidateAdjustmentRule will throw an exception. I'm unsure why these
would be the same, but we do see that occur for some locales. In that
case, just exit early.

This change corrects Unity case 1160695.

Release notes:

IL2CPP: Allow DateTime.Now to work properly on some non-English locales in WebGL. (case 1160695)

If the first and second transition DateTime objects are the same,
`ValidateAdjustmentRule` will throw an exception. I'm unsure why these
would be the same, but we do see that occur for some locales. In that
case, just exit early.

This change corrects Unity case 1160695.
@joshpeterson joshpeterson requested a review from joncham August 23, 2019 16:44
@joshpeterson
Copy link
Author

I'll back port this to 2019.3.

@joshpeterson joshpeterson merged commit b73fd4a into unity-master Aug 23, 2019
@joshpeterson joshpeterson deleted the timezone-dst-same-start-end branch August 23, 2019 17:32
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.

2 participants