From 5f35d57024ff9ff759bc8ae80c9d8281d46fe16d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 27 Apr 2021 11:31:27 -0400 Subject: [PATCH] Fix extraction of day name --- 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 9d395b5..d535447 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -10,4 +10,4 @@ timelog["time"] = 30 # 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["day_of_week"] = timelog["day"].dt.day_name() +timelog["day_of_week"] = pd.to_datetime(timelog["date"]).dt.day_name()