[egenix-users] Bug in DateTime parsing
M.-A. Lemburg
mal at lemburg.com
Fri Feb 28 22:51:56 CET 2003
Paul Rensing wrote:
> Hi Everyone,
>
> I am not subscribed to the list, so please reply directly.
>
> I did not see a bug reporting address on the Web site, so I thought I
> would start here.
>
> There is a bug in the latest version of DateTime when parsing times
> containing "AM" or "PM". Specifically, if the time is "12:??AM" or
> "12:??PM", the resulting time is off by 12 hours (actually, it fails on
> "12:??PM").
>
> The problem is that "12:00AM" means "0:00" (in a 24-hour clock) and
> "12:00PM" means "12:00". The code just ignores "AM" and add 12 to the
> hour when it sees "PM". This not correct when the hour is "12".
This bug will be fixed in the upcoming egenix-mx-base release 2.1.0
(sometime in March).
Thanks,
--
Marc-Andre Lemburg
eGenix.com
Professional Python Software directly from the Source (#1, Feb 28 2003)
>>> Python/Zope Products & Consulting ... http://www.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
Python UK 2003, Oxford: 32 days left
EuroPython 2003, Charleroi, Belgium: 116 days left
More information about the egenix-users
mailing list