diff --git a/flask_profiler/storage/sql_alchemy.py b/flask_profiler/storage/sql_alchemy.py index bd25e16..bc165f1 100644 --- a/flask_profiler/storage/sql_alchemy.py +++ b/flask_profiler/storage/sql_alchemy.py @@ -251,7 +251,7 @@ def getTimeseries(self, kwds={}): Measurements.startedAt.asc() ).all() - rows = [datetime.utcfromtimestamp(row[0]).strftime(dateFormat) for row in rows] + rows = [datetime.fromtimestamp(row[0]).strftime(dateFormat) for row in rows] temp = set(rows) rows = [(time, rows.count(time)) for time in temp] series = {}