fix time formatting

This commit is contained in:
veclav talica 2023-05-22 14:11:24 +05:00
parent 8249280b03
commit a4bfe111cf

View File

@ -40,6 +40,6 @@ for root, dirs, _ in walk(argv[1]):
page += f""">*{','.join(metadata["Tags"])}*\n---\n"""
curtime = time.gmtime(int(time.time()))
page += f"Last compiled: *{MONTHS[curtime.tm_mon]} {curtime.tm_mday}, {curtime.tm_year} {curtime.tm_hour}:{curtime.tm_min:2}*\n\n"
page += f"Last compiled: *{MONTHS[curtime.tm_mon]} {curtime.tm_mday}, {curtime.tm_year} {curtime.tm_hour}:{curtime.tm_min:02d}*\n\n"
print(page_metadata + wrap_page(page))