Skip to content

Commit a2b5d30

Browse files
authored
Merge pull request #1557 from caternuson/tides_dst
Add manual DST setting for MagTag Tides
2 parents eb6403a + e20da54 commit a2b5d30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

MagTag_Tides/magtag_tides_land_lp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
METRIC = False # set to True for metric units
1414
VSCALE = 2 # pixels per ft or m
1515
DAILY_UPDATE_HOUR = 3 # 24 hour format
16+
DST_ON = True # Day Light Saving currently active?
1617
# -------------------------------------------
1718

1819
# don't change these
@@ -144,7 +145,7 @@ def get_data_source_url(station=STATION_ID, metric=METRIC, hilo_only=True):
144145
URL += "&interval=hilo" if hilo_only else ""
145146
URL += "&datum=mllw" # MLLW = "tides"
146147
URL += "&units=metric" if metric else "&units=english"
147-
URL += "&time_zone=lst_ldt" if now.tm_isdst == 1 else "&time_zone=lst"
148+
URL += "&time_zone=lst_ldt" if DST_ON else "&time_zone=lst"
148149
URL += "&begin_date=" + date
149150
URL += "&end_date=" + date
150151
URL += "&station=" + station

0 commit comments

Comments
 (0)