Message164598
| Author |
apalala |
| Recipients |
apalala, cblp, vinay.sajip |
| Date |
2012年07月03日.12:50:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1341319832.1.0.469023365452.issue14902@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
@Vinay The test *is* broken in theory, because it uses today's time.timezone to make calculations over a datetime in the past (1993), even when official time zones have changes in recent years for Caracas, Moscow, and others: http://www.timeanddate.com/news/time/. As it is, the test will pass on some locations and fail on others, even if time.timezone is correct.
If time.timezone is wrong for certain locations is a separate issue that I will post as soon as I complete the unit test. I took a look at Modules/timemodule.c,and there seems to be nothing wrong there.
In short, the bug is: test_time() incorrectly uses the current time.timezone to make calculations over dates in the past. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年07月03日 12:50:32 | apalala | set | recipients:
+ apalala, vinay.sajip, cblp |
| 2012年07月03日 12:50:32 | apalala | set | messageid: <1341319832.1.0.469023365452.issue14902@psf.upfronthosting.co.za> |
| 2012年07月03日 12:50:31 | apalala | link | issue14902 messages |
| 2012年07月03日 12:50:31 | apalala | create |
|