From b2c1bc841a7dea339b48bc31c517d628d2186185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Fri, 28 Jan 2022 23:51:13 -0500 Subject: [PATCH] Correct formatting to create latest date --- 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 3d4af24..6d7f8e0 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -228,7 +228,7 @@ tl = timelog.groupby(["date", timelog.project.fillna(""), timelog.subproject.fil # want to factor out all of the above non-Harvest-specific logic. latest = tl.recorded.max() -datest = str(tl.date.max()) +datest = tl.date.max().strftime('%Y-%m-%d') # Separate Harvest from non-Harvest projects, and also filter out any blank # projects, but save those too for a CSV of the excluded items.