SolarArbiter / solarforecastarbiter-core

Core data gathering, validation, processing, and reporting package for the Solar Forecast Arbiter
https://solarforecastarbiter-core.readthedocs.io
MIT License
33 stars 21 forks source link

Some IANA Timezones are not accepted #821

Open aladakepri opened 8 months ago

aladakepri commented 8 months ago

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

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