Skip to content
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

Fix Date.localOffset for time zones east of prime meridian #505

Merged
merged 3 commits into from
Jul 28, 2023

Commits on Jul 28, 2023

  1. Change Date.localOffset to calculate at each call

    This makes `Date.localOffset` sensitive to changes in `TZ` environment
    variable during execution of the program.
    MatthewFluet committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    179bdbf View commit details
    Browse the repository at this point in the history
  2. Add date-localOffset regression test

    The `date-localOffset` regression test demonstrates a bug in
    `Date.localOffset` for time zones east of prime meridian.
    MatthewFluet committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    f4181b0 View commit details
    Browse the repository at this point in the history
  3. Fix bug in Date.localOffset for time zones east of prime meridian

    Thanks to Arata Mizuki (minoki) for the bug report and suggested fix.
    MatthewFluet committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    86ca971 View commit details
    Browse the repository at this point in the history