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 time representation #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lonemadmax
Copy link

  • There's no need to visit all layers, just the timezone ones.
  • Timezones are far from rectangular, testing against their bounds gives wrong results in far too many cases.
  • The value in time_zone property is a fixed offset, not taking into account DST changes, so can't be used directly.
  • You can now add a timezone property to users to override detection by coordinates (the timezones plugin has stale data, some timezones have changed).
  • Changed output format to use client's locale, instead of Swedish.

- There's no need to visit all layers, just the timezone ones.
- Timezones are far from rectangular, testing against their bounds gives
  wrong results in far too many cases.
- The value in `time_zone` property is a fixed offset, not taking into
  account DST changes, so can't be used directly.
- You can now add a `timezone` property to users to override detection
  by coordinates (the timezones plugin has stale data, some timezones
  have changed).
- Changed output format to use client's locale, instead of Swedish.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant