time.strftime Timezone issue

Allen Unueco allen at premierweb.com
Sat Jun 12 19:47:45 EDT 2004


I feel that the '%Z' format specifier from strftime() returns the wrong 
value when daylight savings is in effect.

Today the following is always true:
time.strftime('%Z') == time.tzname[0]

Shouldn't it be:
time.strftime('%Z') == time.tzname[time.daylight]

-allen



More information about the Python-list mailing list