[Issue #2] - Added config.py toggle for observing daylight savings time
This commit is contained in:
@@ -91,6 +91,9 @@ def is_dst(year, month, day, hour_utc, weekday):
|
||||
- Ends: 1st Sunday in November at 02:00 local (06:00 UTC for UTC-4)
|
||||
Note: weekday is 0=Monday ... 6=Sunday.
|
||||
"""
|
||||
if not Config.DST_OBSERVED:
|
||||
return False
|
||||
|
||||
# 1. Months completely inside or outside DST
|
||||
if month < 3 or month > 11:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user