why goes the time change after import statement ?

binaryjesus coolman.guron at gmail.com
Sat Aug 2 16:35:23 EDT 2008


hi i am working on a S3 project and facing a really weird problem!
take a look at the following import statements and the time output

>>> import time
>>> time.strftime("%a, %d %b %Y %X GMT", time.gmtime())
'Sat, 02 Aug 2008 20:21:56 GMT'

# OK

>>> import pygtk
>>> time.strftime("%a, %d %b %Y %X GMT", time.gmtime())
'Sat, 02 Aug 2008 20:22:04 GMT'

# OK

>>> import gtk
>>> time.strftime("%a, %d %b %Y %X GMT", time.gmtime())
'Sat, 02 Aug 2008 08:22:11 PM GMT'

# HOW THE HELL THIS HAPPEN ??? not DATE_RFC2822 format gmt time !

i have waisted 3 hours trying to locate the source of this strange
problem.
so what i am asking is does anyone know to overwrite or fix the
defaurl behaviour strftime() ????



More information about the Python-list mailing list