[issue25534] SimpleHTTPServer throwed an exception due to negtive st_mtime attr in file
Martin Panter
report at bugs.python.org
Wed Nov 4 23:15:11 EST 2015
Martin Panter added the comment:
Perhaps you have a timezone set (I don’t). This might work better:
touch -d "1 Jan 1900 UTC" test
My thinking is if os.stat() returns a negative timestamp from the OS (GNU C library in the case of Linux), it may be worth trying gmtime() on that value since it also calls the OS (glibc) function.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25534>
_______________________________________
More information about the Python-bugs-list
mailing list