Use utcnow for creation_time

because utc timestamps are used in logs and for online_dc, too.
This commit is contained in:
Thor77 2016-11-04 20:05:02 +01:00
parent 812916f179
commit 679473f7b4
1 changed files with 1 additions and 1 deletions

View File

@ -67,5 +67,5 @@ def render_template(clients, output, title='TeamspeakStats',
with open(output, 'w', encoding='utf-8') as f: with open(output, 'w', encoding='utf-8') as f:
f.write(template.render(title=title, objs=objs, f.write(template.render(title=title, objs=objs,
debug=logger.level <= logging.DEBUG, debug=logger.level <= logging.DEBUG,
creation_time=datetime.now())) creation_time=datetime.utcnow()))
logger.debug('Wrote rendered template to %s', output) logger.debug('Wrote rendered template to %s', output)