fixed dow tag for python strftime

This commit is contained in:
Ezri Brimhall 2024-03-19 16:23:13 -06:00
parent 622aabcc8b
commit d68da62123
Signed by: ezri
GPG Key ID: 3DA1675C4E9B9216

View File

@ -13,7 +13,7 @@ import time
def get_date(): def get_date():
"""Return the current date as a JSON object string.""" """Return the current date as a JSON object string."""
return datetime.datetime.now().strftime( return datetime.datetime.now().strftime(
'{"hour": "%H", "minute": "%M", "second": "%S", "day": "%d", "month": "%m", "year": "%Y", "dow": "%w","month_name": "%B", "unix": %s}' '{"hour": "%H", "minute": "%M", "second": "%S", "day": "%d", "month": "%m", "year": "%Y", "dow": "%A","month_name": "%B", "unix": %s}'
) )