From 3ea779f7f22d2fa7a51b46b7c713cc8039821e28 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Mon, 12 Aug 2024 19:22:51 +0100 Subject: [PATCH] Fix for python 3.11 --- py/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py/util.py b/py/util.py index 3f7715a..50ca91d 100644 --- a/py/util.py +++ b/py/util.py @@ -12,7 +12,9 @@ def get_day_with_suffix(day): def format_today(): """Format the current datetime""" now = datetime.now() - return f"{get_day_with_suffix(now.day)} {now.strftime("%B")}" + day = get_day_with_suffix(now.day) + month = now.strftime("%B") + return f"{day} {month}" def format_list(list) -> str: