time.strftime Timezone issue

Allen Unueco allen at premierweb.com
Sun Jun 13 01:47:45 CEST 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]


More information about the Python-list mailing list