From 32f7f7084797cfa3a303e2c68ce46dfcf2b436bf Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 20 Mar 2024 04:03:55 +0100 Subject: [PATCH] Explicitly use DATE_FORMAT in todays_date(). --- plomtask/days.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2