Skip to content

Commit

Permalink
Merge pull request #94 from afids/fix-time
Browse files Browse the repository at this point in the history
Add timezone
  • Loading branch information
tkkuehn authored Jul 9, 2020
2 parents 971b95f + 337bf45 commit 4514da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import io
import csv
import json
from datetime import datetime
from datetime import datetime, timezone

from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
Expand Down Expand Up @@ -224,7 +224,7 @@ def validator():

human_templates.append(d.split('_')[0])

timestamp = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
timestamp = str(datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S %Z"))
if not request.method == 'POST':
result = '<br>'.join([result, msg])

Expand Down

0 comments on commit 4514da3

Please sign in to comment.