In python on my machine, I can run datetime.now() to get the local time. If I check the time.daylight flag, it is set to 1 , because we are currently in July (therefore, daylight saving time).
But if I run datetime.now() on the Google App Engine (including the Dev server), it does not account for daylight saving time (UK daylight saving time) and returns the wrong time (13:47 instead of 14:47). If I check time.daylight in GAE, it is set to 0 .
How can I get the right local time? Do I need to change the time zone in my application?
source share