From 3b7f7aa11da0ae022f66234ba5103f2878e3195d Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Mon, 15 Jun 2020 21:59:20 +0200 Subject: use timestamp with timezone --- src/hourly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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() -- cgit v1.2.3