f2e2c97600
This use of JS returns the value with the opposite sign of what it should be (in Dart). This is because Dart uses the difference between local time and UTC, while JS uses the opposite. Also updates the test for this to also accept the longer style of timezone names as that is what Chrome and d8 on my mac are returning. I'm assuming that's why this wasn't caught earlier. Fixes https://github.com/dart-lang/sdk/issues/54448 CoreLibraryReviewExempt: Specific to dart2wasm backend Bug: https://github.com/dart-lang/sdk/issues/54448 Change-Id: I54ab721fa33ef638ccd158d08738ca68273a790b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/343520 Reviewed-by: Ömer Ağacan <omersa@google.com> Auto-Submit: Parker Lougheed <parlough@gmail.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>