why goes the time change after import statement ?

B

binaryjesus

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
'Sat, 02 Aug 2008 20:21:56 GMT'

# OK
'Sat, 02 Aug 2008 20:22:04 GMT'

# OK
'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() ????
 
P

Paul Hankin

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


'Sat, 02 Aug 2008 20:21:56 GMT'

# OK


'Sat, 02 Aug 2008 20:22:04 GMT'

# OK


'Sat, 02 Aug 2008 08:22:11 PM GMT'

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

Reading the manual page for strftime -- http://docs.python.org/lib/module-time.html
-- says that '%X' is the locale's appropriate time representation, so
obviously gtk is adjusting your locale. Perhaps use a formatting
string that doesn't depend on the locale: '%H:%M:%S' instead of '%X'
seems to give your preferred format.
 
B

binaryjesus

Reading the manual page for strftime --http://docs.python.org/lib/module-time.html
-- says that '%X' is the locale's appropriate time representation, so
obviously gtk is adjusting your locale. Perhaps use a formatting
string that doesn't depend on the locale: '%H:%M:%S' instead of '%X'
seems to give your preferred format.

ok that explain it.
but what command does gtk runs that it sets the default behaviour of
strfime() to that ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top