[issue6165] strftime incorrectly processes DST flag when passed time touples

2012-06-09 Thread R. David Murray
R. David Murray added the comment: Closing because of lack of response. -- nosy: +r.david.murray status: pending -> closed ___ Python tracker ___

[issue6165] strftime incorrectly processes DST flag when passed time touples

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is not clear to me what you think is a bug. Please give actual output, what you expect (in full), and reference to doc. I cannot test in 3.1 as that format is no longer legal. -- components: +Library (Lib) -Extension Modules nosy: +tjreedy status: o

[issue6165] strftime incorrectly processes DST flag when passed time touples

2009-06-01 Thread Jonathan
Jonathan added the comment: kludged_zone = ("+" if time.altzone < 0 else '-') + time.strftime("%H%M",time.gmtime(abs(time.altzone))) time_zone_format_string = time_zone_format.replace("%z", kludged_zone) -- ___ Python tracker

[issue6165] strftime incorrectly processes DST flag when passed time touples

2009-06-01 Thread Jonathan
Jonathan added the comment: Actually, I didn't change the DST flag in the second test, the second commented bug is invalid, only the first one is correct. -- ___ Python tracker _

[issue6165] strftime incorrectly processes DST flag when passed time touples

2009-06-01 Thread Jonathan
New submission from Jonathan : >>> import time >>> time.strftime("%FT%T%z") '2009-06-01T18:35:42+0100' >>> # Expect to see +0100 >>> time.strftime("%FT%T%z",time.localtime()) '2009-06-01T18:35:42+' >>> time.strftime("%FT%T%Z",time.localtime()) '2009-06-01T18:35:42BST' >>> made_up_time = list(