dateutils icon indicating copy to clipboard operation
dateutils copied to clipboard

Issue with AM/PM Time Conversion

Open david-gogoprint opened this issue 3 years ago • 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

david-gogoprint avatar Jan 20 '22 07:01 david-gogoprint

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

hroptatyr avatar Jan 20 '22 07:01 hroptatyr