Skip to content

Commit

Permalink
fixed #50
Browse files Browse the repository at this point in the history
  • Loading branch information
Opvolger committed Dec 17, 2022
1 parent d919caa commit dc69b91
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/lib/amsterdamzone.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ def __init__(self, date):
isdst = True
if self.dateitem('2022-03-27 02:00:00') < date.replace(tzinfo=None) < self.dateitem('2022-10-30 02:00:00'):
isdst = True
if self.dateitem('2023-03-26 02:00:00') < date.replace(tzinfo=None) < self.dateitem('2023-10-29 02:00:00'):
isdst = True
if self.dateitem('2024-03-31 02:00:00') < date.replace(tzinfo=None) < self.dateitem('2024-10-27 02:00:00'):
isdst = True
if self.dateitem('2025-03-30 02:00:00') < date.replace(tzinfo=None) < self.dateitem('2025-10-26 02:00:00'):
isdst = True
if self.dateitem('2026-03-29 02:00:00') < date.replace(tzinfo=None) < self.dateitem('2026-10-25 02:00:00'):
isdst = True
if self.dateitem('2027-03-28 02:00:00') < date.replace(tzinfo=None) < self.dateitem('2027-10-31 02:00:00'):
isdst = True
# Hier zal de zomer en wintertijd wel zijn afgeschaft :)
Zone.__init__(self, +1, isdst, 'Europe/Amsterdam')

Expand Down

0 comments on commit dc69b91

Please sign in to comment.