From e58e7363ec0d76f5006359e9d6653a4c1f4ff019 Mon Sep 17 00:00:00 2001 From: xuzheliang135 <37364772+xuzheliang135@users.noreply.github.com> Date: Wed, 25 Dec 2019 22:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=8C=96=E6=97=B6=E9=97=B4(?= =?UTF-8?q?=E5=AF=B9=E4=BD=BF=E7=94=A8SQLALCHEMY=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_profiler/storage/sql_alchemy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {}