Fix for python 3.11

This commit is contained in:
Marc Di Luzio 2024-08-12 19:22:51 +01:00
parent 8d399aae52
commit 3ea779f7f2

View file

@ -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: