mirror of
https://github.com/Thor77/TeamspeakStats.git
synced 2025-07-09 16:58:42 -04:00
add timezone to output of tsstats.template.render_template.frmttime
This commit is contained in:
parent
ea64ee0ecb
commit
477ca7d739
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ def render_template(clients, output, title='TeamspeakStats'):
|
||||||
def frmttime(timestamp):
|
def frmttime(timestamp):
|
||||||
if not timestamp:
|
if not timestamp:
|
||||||
return ''
|
return ''
|
||||||
return timestamp.strftime('%x %X')
|
return timestamp.strftime('%x %X %Z')
|
||||||
template_env.filters['frmttime'] = frmttime
|
template_env.filters['frmttime'] = frmttime
|
||||||
template = template_env.get_template('template.html')
|
template = template_env.get_template('template.html')
|
||||||
with open(output, 'w') as f:
|
with open(output, 'w') as f:
|
||||||
|
|
Loading…
Add table
Reference in a new issue