From: Christian Heller Date: Wed, 20 Mar 2024 03:03:55 +0000 (+0100) Subject: Explicitly use DATE_FORMAT in todays_date(). X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/bar%20baz.html?a=commitdiff_plain;h=32f7f7084797cfa3a303e2c68ce46dfcf2b436bf;p=plomtask Explicitly use DATE_FORMAT in todays_date(). --- diff --git a/plomtask/days.py b/plomtask/days.py index aee4bf8..04592a3 100644 --- a/plomtask/days.py +++ b/plomtask/days.py @@ -18,7 +18,7 @@ def date_valid(date: str): def todays_date(): """Return current date in DATE_FORMAT.""" - return str(datetime.now())[:10] + return datetime.now().strftime(DATE_FORMAT) class Day: