Skip to content

Commit

Permalink
Avoid using legacy time zone name 'CET' in tests
Browse files Browse the repository at this point in the history
This commit replaces the legacy time zone name CET with the current name
Europe/Brussels in two tests.

Release 2024b of the tz database removed System V symlinks including the
symlink that points from CET to Europe/Brussels.

In Debian the CET symlink has moved from the tzdata package to
tzdata-legacy.

See https://data.iana.org/time-zones/tzdb-2024b/NEWS and
https://lists.debian.org/debian-devel-changes/2024/10/msg00256.html
  • Loading branch information
EdwardBetts authored and gerrymanoim committed Nov 14, 2024
1 parent 133b547 commit 2a59c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exchange_calendars/exchange_calendar_xdus.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class XDUSExchangeCalendar(ExchangeCalendar):

name = "XDUS"

tz = ZoneInfo("CET")
tz = ZoneInfo("Europe/Brussels")

open_times = ((None, time(8)),)

Expand Down
2 changes: 1 addition & 1 deletion exchange_calendars/exchange_calendar_xham.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class XHAMExchangeCalendar(ExchangeCalendar):

name = "XHAM"

tz = ZoneInfo("CET")
tz = ZoneInfo("Europe/Brussels")

open_times = ((None, time(8)),)

Expand Down

0 comments on commit 2a59c89

Please sign in to comment.