We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e6a39e commit 6db14adCopy full SHA for 6db14ad
build.py
@@ -1,12 +1,13 @@
1
import datetime
2
+import pytz
3
4
def read_text(path):
5
with open(path) as file:
6
return file.read()
7
8
9
def inline_assets(html, css, js):
- 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")
11
html = html.replace(f'<span id="tool-version"></span>', f'<span id="tool-version">compiled on {compilation_time}<strong></strong></span>')
12
html = html.replace(f'<link rel="stylesheet" href="style.css">', f'')
13
html = html.replace(f'</head>', f'<style>\n{css}\n</style>\n</head>')
0 commit comments