Skip to content

Inconsistent offset near DST boundary #235

Description

@neutraltone

Information

Spacetime Version: v6.8.0
Example: https://codesandbox.io/s/inspiring-voice-qnons?file=/src/App.vue

Browsers Tested

  • Firefox
  • Safari
  • Chrome

Hi, I'm experiencing a problem with timestamps that are near the DST boundary and converted to CST when the users system is set to CST as well.

I have a timestamp which is being returned from my API in UTC, I'm then using spacetime to then convert this to CST. Prior to the recent release which included pr #233, (If I recall correctly) the offset of the timestamp after converting to CST was wrong regardless of my system timezone (01-11-2020T04:00 would always be 01-11-2020T00:00).

After the most recent release the time is fine when I have my system set to Europe/London but when I change the timezone on my Mac to America/Chicago the offset is incorrect again. Also, people working on the same application in the CST timezone are seeing the incorrect value.

Reproduction Steps

  1. Set system timezone to Europe/London
  2. Visit example link above and see that the dateCst is displayed correctly - 2020-10-31T23:00:00.000-05:00
  3. Change system timezone to America/Chicago
  4. Refresh code sandbox and see that dateCst timestamp is now incorrect - 2020-11-01T00:00:00.000-05:00

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions