Skip to content

Commit 6db14ad

Browse files
committed
Updated builder
1 parent 7e6a39e commit 6db14ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import datetime
2+
import pytz
23

34
def read_text(path):
45
with open(path) as file:
56
return file.read()
67

78

89
def inline_assets(html, css, js):
9-
compilation_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
10+
compilation_time = datetime.datetime.now().astimezone(pytz.timezone('Europe/Warsaw')).strftime("%Y-%m-%d %H:%M")
1011
html = html.replace(f'<span id="tool-version"></span>', f'<span id="tool-version">compiled on {compilation_time}<strong></strong></span>')
1112
html = html.replace(f'<link rel="stylesheet" href="style.css">', f'')
1213
html = html.replace(f'</head>', f'<style>\n{css}\n</style>\n</head>')

0 commit comments

Comments
 (0)