Fix extraction of day name
This commit is contained in:
parent
e36d149b10
commit
5f35d57024
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue