From 97463d60f0342c9626644f68bcff211bbf4edfc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sun, 1 Oct 2023 20:18:36 -0400 Subject: [PATCH] Switch to supported timezone indicator since pytz suddenly ditched 'Eastern' This is so seriously bizarre but whatever. Had a moment of madness with like 'but i know i fixed this'! before suddenly realizing it was in Pomodoro Prompt not this hours rollup that i fixed it in last week! --- pomodoro_to_harvest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 3a01c5a..e8d2192 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -66,8 +66,8 @@ timelog = timelog.explode("description").reset_index() if debug: mess = copy.deepcopy(timelog) -timelog["started"] = pd.to_datetime(timelog["started"], errors='coerce').dt.tz_convert("US/Eastern") -timelog["recorded"] = pd.to_datetime(timelog["recorded"]).dt.tz_convert("US/Eastern") +timelog["started"] = pd.to_datetime(timelog["started"], errors='coerce').dt.tz_convert("America/New_York") +timelog["recorded"] = pd.to_datetime(timelog["recorded"]).dt.tz_convert("America/New_York") latest_recorded = settings.pomodoro_latest_recorded() if latest_recorded: