Correct formatting to create latest date

This commit is contained in:
benjamin melançon 2022-01-28 23:51:13 -05:00
parent 7102c3876f
commit b2c1bc841a

View file

@ -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. # want to factor out all of the above non-Harvest-specific logic.
latest = tl.recorded.max() 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 # Separate Harvest from non-Harvest projects, and also filter out any blank
# projects, but save those too for a CSV of the excluded items. # projects, but save those too for a CSV of the excluded items.