From 0d39fb9e30d4c1fe45c6ba485e490672f85a1d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 25 Sep 2023 14:56:17 -0400 Subject: [PATCH] Switch to supported timezone since pytz suddenly ditched Pacific File pomodoroprompt.py, line 56, in log_step timelog_file = Path(prepare_file(utc_start, ext='log', daily=True)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File pomodoroprompt.py, line 100, in prepare_file logpath_tz = timezone('US/Pacific') ^^^^^^^^^^^^^^^^^^^^^^ pytz.exceptions.UnknownTimeZoneError: 'US/Pacific' Like i'm pretty sure it's right there on the coast but if calling it Los Angeles sooths you cool. --- pomodoroprompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomodoroprompt.py b/pomodoroprompt.py index 051490a..1cec777 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -97,7 +97,7 @@ def prepare_file(utc_start, ext='csv', daily=False): os.makedirs(logpath) # We consider 3am the switchover to a new day, so we skip extra math # and use Pacific time to get three hours later than our Eastern time. - logpath_tz = timezone('US/Pacific') + logpath_tz = timezone('America/Los_Angeles') logpath_date = utc_start.astimezone(logpath_tz) timelog_path = logpath + '/' + str(logpath_date.year); if (daily):