fix(backend): date is zero-padded
All checks were successful
Publish docker image / Publish (push) Successful in 2m53s

This commit is contained in:
Ashhhleyyy 2024-03-01 10:18:55 +00:00
parent 9336bd9ddb
commit 24718ced1b
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -3,4 +3,4 @@ from datetime import datetime
def today() -> str:
now = datetime.now()
return now.strftime('%A') + ' ' + str(now.day) + ' ' + now.strftime('%B')
return f"{now.strftime('%A')} {now.day:02} {now.strftime('%B')}"