Skip to content

Some IANA Timezones are not accepted #821

@aladakepri

Description

@aladakepri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions