flask-profiler icon indicating copy to clipboard operation
flask-profiler copied to clipboard

本地化时间(对使用SQLALCHEMY情况下)

Open xuzheliang135 opened this issue 5 years ago • 2 comments

将utcfromtimestamp改为fromtimestamp

xuzheliang135 avatar Dec 25 '19 14:12 xuzheliang135

can you elaborate the reason for the change?

muatik avatar Dec 30 '19 21:12 muatik

when you click the tab 24hours, image it will show in UTC time if you use SQLALCHEMY as the profiler engine. But if you use other engines, it will show in your local time.By changing utcfromtimestamp to fromtimestamp, it will be solved.

xuzheliang135 avatar Dec 31 '19 05:12 xuzheliang135