Skip to content

Cannot use Timezone Europe/Zurich

Hi there

I tried using scheduler with Zurich timezone, but it fails:

tzone = ZoneInfo("Europe/Zurich") scheduler = Scheduler(tzinfo=tzone)

The function check_tzname in scheduler_util fails. The core reason is that Europe/Zurich only returns a name when given a date: ZoneInfo("Europe/Zurich").tzname(None) -> None ZoneInfo("Europe/Amsterdam").tzname(datetime.now()) -> CEST

Regards, Adrian