[egenix-users] Bug in DateTime parsing

Paul Rensing paul.rensing at att.net
Mon Feb 3 17:34:22 CET 2003


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".

	Paul
-- 
Paul Rensing <paul.rensing at att.net>


More information about the egenix-users mailing list