-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[gardening] corelib/date_time7_test summer time #55159
Labels
Comments
I'm not at a computer right now to check, but I faintly remember my change only affecting the Wasm backend. However, I think Pacific Daylight Time should still be Perhaps https://dart-review.googlesource.com/c/sdk/+/356681 will fix it? |
copybara-service bot
pushed a commit
that referenced
this issue
Mar 19, 2024
It needs to look at the given moment to decide whether to use summer time zone name or standard time zone name. Previously it was looking at the current time to make this decision which produced incorrect result: e.g. given `DateTime.parse(2012-01-02T13:45:23)` its `timeZoneName` should be returning standard name corresponding to the current time zone even if we are currently running in summer time (e.g. it should return PST if machine it is running on is in PDT). This is revealed by a test which started to fail on Windows because our Windows bots entered PDT. Fixes #55159 TEST=corelib/date_time7_test.dart CoreLibraryReviewExempt: No core library changes. Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/356681 Cherry-pick-request: #55240 Change-Id: Id4b593edfb4f0df967ff04d72efa86f320cc4e8f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358420 Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Kevin Chisholm <[email protected]>
copybara-service bot
pushed a commit
that referenced
this issue
Mar 19, 2024
It needs to look at the given moment to decide whether to use summer time zone name or standard time zone name. Previously it was looking at the current time to make this decision which produced incorrect result: e.g. given `DateTime.parse(2012-01-02T13:45:23)` its `timeZoneName` should be returning standard name corresponding to the current time zone even if we are currently running in summer time (e.g. it should return PST if machine it is running on is in PDT). This is revealed by a test which started to fail on Windows because our Windows bots entered PDT. Fixes #55159 TEST=corelib/date_time7_test.dart CoreLibraryReviewExempt: No core library changes. Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/356681 Cherry-pick-request: #55240 Change-Id: I11fb963ec90055db168c7f34bdf7c58229085bd1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358440 Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Kevin Chisholm <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
log
cc @parlough Your test might not be working correctly with daylight savings.
Different parts of the world change to summer time on different dates.
The text was updated successfully, but these errors were encountered: