From 1830c073293ddb5e604ad931f2069153a13fb068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sun, 1 Oct 2023 20:20:50 -0400 Subject: [PATCH] OK we had a US Pacific in here that needed updating as well as the Easterns Honestly my use of timezones in these programs is such a hack i should not complain when they break, even though the breakage is unrelated to my hackiness. --- pomodoro_to_harvest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index e8d2192..436c302 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -77,7 +77,7 @@ timelog["time"] = 30 # A pomodoro started before 3am Eastern time is considered to be a continuation # of the day before, so we are, effectively, on West Coast time for determining # the day we want to associate a time entry with. PomodoroPrompt saves as UTC. -timelog["date"] = timelog["started"].dt.tz_convert("US/Pacific").dt.date +timelog["date"] = timelog["started"].dt.tz_convert("America/Los_Angeles").dt.date timelog['date'] = pd.to_datetime(timelog['date']) timelog["day_of_week"] = pd.to_datetime(timelog["date"]).dt.day_name()