[CP] Fix DateTime.timeZoneName on Windows #55240
Labels
area-meta
Cross-cutting, high-level issues (for tracking many other implementation issues, ...).
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-merged
Cherry-pick has been merged to the stable or beta branch.
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-beta
merge-to-stable
Commit(s) to merge
b0236fd
Target
beta and stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/358420
https://dart-review.googlesource.com/c/sdk/+/358440
Issue Description
DateTime.timeZoneName
returns incorrect value on Windows when the machine is in the summer time but the given moment is in the standard time and vice versa.What is the fix
Fix the implementation of the function to use the given moment rather then to look at the current time zone.
Why cherry-pick
There is a test failing on stable and beta branches - which makes other cherry picks harder.
Risk
low
Issue link(s)
#55159
Extra Info
/cc @a-siva
The text was updated successfully, but these errors were encountered: