Fix for python 3.11
This commit is contained in:
parent
8d399aae52
commit
3ea779f7f2
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ def get_day_with_suffix(day):
|
||||||
def format_today():
|
def format_today():
|
||||||
"""Format the current datetime"""
|
"""Format the current datetime"""
|
||||||
now = datetime.now()
|
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:
|
def format_list(list) -> str:
|
||||||
|
|
Loading…
Add table
Reference in a new issue