aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-06-15 21:59:20 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-06-15 21:59:20 +0200
commit3b7f7aa11da0ae022f66234ba5103f2878e3195d (patch)
treeb3bad3d4b7d92144074cb8790b8ca5c4977720db
parent947b2e7d138e5daee56d8198b36b21672f9a517d (diff)
download0tdns-3b7f7aa11da0ae022f66234ba5103f2878e3195d.tar.gz
0tdns-3b7f7aa11da0ae022f66234ba5103f2878e3195d.zip
use timestamp with timezone
-rwxr-xr-xsrc/hourly.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hourly.py b/src/hourly.py
index 4c44141..60d9cab 100755
--- a/src/hourly.py
+++ b/src/hourly.py
@@ -42,7 +42,7 @@ def get_vpn_connections(cursor, hour):
with open("/var/log/0tdns.log", "a") as logfile:
# round down to an hour - this datetime format is one
# of the formats accepted by postgres
- hour = strftime('%Y-%m-%d %H:00', gmtime())
+ hour = strftime('%Y-%m-%d %H:00%z', gmtime())
logfile.write("Running for {}\n".format(hour))
ztdns_config = get_ztdns_config()