Issue
We have our flask server up and running. However requirement has come up to set server timzone as GMT instead of UTC. I could not find anything related to timezone in flask documentation. Is this possible? I know it is possible in django.
Solution
you can make use of the python datetime.now()
instead of the datetime.utcnow()
, or you can create a function that will automatically do the timezone conversions on all date objects for you on the sever.
I hope that will help you
Answered By - Achim Munene
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.