[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms
report at bugs.python.org
Mon Mar 21 03:04:21 CET 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> While it is unlikely that a purely numeric format such as "%Y-%m-%d
> %H:%M:%S" will be locale dependent, it is possible that some pre-C99
> systems would format dates using exotic digits is some locales.
Ok, I rewrote my patch to avoid strftime(). It should now be fixed.
FYI datetime.fromtimestamp() converts the timestamp to a double, which has a precision of 53 bits (no precision loss for year < 285,422,890 and so it's enough for year 2038).
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list