tag 593461 + moreinfo
thanks

On 18.08.2010 14:35, Juha Jäykkä wrote:
Package: python2.6
Version: 2.6.6~rc1-1
Severity: important


Python docs say:

time.strftime(format[, t])

Convert a tuple or struct_time representing a time as returned by gmtime() or
localtime() to a string as specified by the format argument. If t is not
provided, the current time as returned by localtime() is used.

However,

time.strftime("%Z", time.localtime())
'GMT'
time.strftime("%Z")
'BST'


So, either the docs are buggy or the module is buggy. This is actually 
relatively
annoying, since there seems to be no way of getting strftime to output the 
correct
timezone name when it is given the time argument. It means that there is no way 
of
correctly printing timezone names for any other date&  time except local "now"
time.

I can't reproduce this. which locale do you use, are the locales generated and installed?



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to