hroptatyr/dateutils

Issue with AM/PM Time Conversion

david-gogoprint opened this issue · 1 comments

Hi,

I am confused about this example below:

admdavb@Ubuntu:~$ dateutils.dconv -V
dconv 0.3.1
admdavb@Ubuntu:~$ dateutils.dconv -i "%I:%M:%S %p" "12:22:33 PM"
00:22:33
admdavb@Ubuntu:~$ dateutils.dconv -i "%I:%M:%S %p" "12:22:33 AM"
12:22:33

The correct result should be the other way round, i.e. 12:22:33PM is midday and vice-versa.

Am I doing something wrong or is this a bug?

Regards,
David

Hi, thanks for the report. This has been fixed in bce4e5d.