Fix extraction of day name

This commit is contained in:
benjamin melançon 2021-04-27 11:31:27 -04:00
parent e36d149b10
commit 5f35d57024

View file

@ -10,4 +10,4 @@ timelog["time"] = 30
# of the day before, so we are, effectively, on West Coast time for determining # 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. # 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("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()