Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python time.gmtime() returning time that's 5 hours ahead of system time

I have been scouring the google machine and have come up with nothing to answer this. When making calls to:

time.gmtime()  

This ends up returning a time, as the subject line says, 5 hours ahead of my system time. I cannot figure out what is going on. time.tzname() returns the proper timezone. Aside from setting python to a timezone 5 hours earlier than mine, is there any way to correct this error?

like image 391
James Christie Avatar asked Nov 28 '22 08:11

James Christie


1 Answers

Have you tried moving to London? I think that will solve your problem. :)

like image 99
Jack Leow Avatar answered Dec 05 '22 21:12

Jack Leow