This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mumino
Recipients Daniel.O'Connor, belopolsky, bignose, mumino, r.david.murray, santoso.wijaya
Date 2012-09-20.12:23:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I made a patch for datetime.strftime('%s'). it takes tzinfo into consideration.

>>> datetime.datetime(1970,1,1).strftime("%s")   

>>> datetime.datetime(1970,1,1, tzinfo=datetime.timezone.utc).strftime("%s")
'0' still behave as naive datetime.datetime
Date User Action Args
2012-09-20 12:23:51muminosetrecipients: + mumino, belopolsky, r.david.murray, santoso.wijaya, bignose, Daniel.O'Connor
2012-09-20 12:23:51muminosetmessageid: <>
2012-09-20 12:23:51muminolinkissue12750 messages
2012-09-20 12:23:51muminocreate