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

Some IANA Timezones are not accepted #821

Open
aladakepri opened this issue Oct 18, 2023 · 0 comments
Open

Some IANA Timezones are not accepted #821

aladakepri opened this issue Oct 18, 2023 · 0 comments

Comments

@aladakepri
Copy link

aladakepri commented Oct 18, 2023

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

  • The "Europe/*" IANA codes do not appear to work when passed to APISession.create_site(site)
  • The "US/*" IANA codes do not appear to work.
  • The "Etc/*" appear to work
  • The "America/*" codes appear to work

The trace, when timezone='Europe/Tirane', for example:
Screenshot 2023-10-18 155452

The "US/" codes are just links to "America/" codes, so this isn't a problem, but the "Europe/" codes are canonical, and offer no working replacement that accounts for daylight savings, etc.

Appears to be the source of the problem: https://github.com/SolarArbiter/solarforecastarbiter-api/blob/280800c73eb7cfd49029462b352887e78f1ff91b/sfa_api/utils/validators.py#L47

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

No branches or pull requests

1 participant