fix time formatting
This commit is contained in:
1 parent
8249280b03
commit
a4bfe111cf
1 file changed
+1
-1
@@ -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))
|
||||
Reference in new issue
Block a user