thomersch / openstreetmap-calendar

osmcal, a Collaborative Calendar for OpenStreetMap-related Events
https://osmcal.org
Apache License 2.0
33 stars 9 forks source link

Unrecognized Time Zone #47

Closed thomersch closed 3 years ago

thomersch commented 3 years ago

A user added an event in the time zone "US/Mountain", which is a valid selection, but this lead to an error at database level:

time zone "US/Mountain" not recognized

This does look like an incompatibility between time databases. Maybe it is just an operational issue.

thomersch commented 3 years ago

The dropdown in the event form comes from pytz, who say:

[...] It doesn’t contain deprecated zones or historical zones, except for a few I’ve deemed in common usage, such as US/Eastern

Anyhow, the timezone DB that PostgreSQL uses is a IANA dump, which does not include deprecated time zones (such as US/Mountain, US/Eastern etc).

thomersch commented 3 years ago

Timezones are now converted into "Continent/Place" format and displayed as timezone name.