[ZCM] [ZC] 858/ 3 Comment "Bug in DateTime parsing"
Collector: Zope Bugs, Features, and Patches ...
zope-coders-admin@zope.org
Wed, 19 Mar 2003 08:16:49 -0500
Issue #858 Update (Comment) "Bug in DateTime parsing"
Status Pending, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/858
==============================================================
= Comment - Entry #3 by chrisw on Mar 19, 2003 8:16 am
That's not a very helpful answer.
The DateTime code can't be that bad, can it?
If it is, surely fixing it should be a critical task?
________________________________________
= Comment - Entry #2 by ajung on Mar 19, 2003 8:07 am
That's a bad thing but it is unlikely that such issues
will ever be fixed with the existing situation. Seems that
we have to live these problems.
________________________________________
= Request - Entry #1 by chrisw on Mar 19, 2003 7:20 am
DateTime can't parse the representation of all the dates that can be created with it.
For example:
print DateTime(1000,0)
0999/12/31
print DateTime('0999/12/31')
Traceback (innermost last):
Module ZPublisher.Publish, line 98, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Shared.DC.Scripts.Bindings, line 252, in __call__
Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 315, in _exec
Module Script (Python), line 5, in test
- <PythonScript at /website/test>
- Line 5
Module DateTime.DateTime, line 658, in __init__
Module DateTime.DateTime, line 1002, in _parse
Invalid Date-Time String: 0999/12/31
==============================================================