From 679473f7b454f3229db8ce3c4693d81f1c57aef7 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Fri, 4 Nov 2016 20:05:02 +0100 Subject: [PATCH] Use utcnow for creation_time because utc timestamps are used in logs and for online_dc, too. --- tsstats/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsstats/template.py b/tsstats/template.py index 2b456b4..90b279e 100644 --- a/tsstats/template.py +++ b/tsstats/template.py @@ -67,5 +67,5 @@ def render_template(clients, output, title='TeamspeakStats', with open(output, 'w', encoding='utf-8') as f: f.write(template.render(title=title, objs=objs, debug=logger.level <= logging.DEBUG, - creation_time=datetime.now())) + creation_time=datetime.utcnow())) logger.debug('Wrote rendered template to %s', output)