h2qutc / angular-material-components

Angular Material Library provide extra components for every project
https://h2qutc.github.io/angular-material-components/
MIT License
331 stars 161 forks source link

Midnight time shown as 24:00 #171

Open josephwva opened 3 years ago

josephwva commented 3 years ago

For DateTime picker, if I pick a midnight time (i.e. any time between 12 am and 12:59:59 am) for any date, the output in the textbox is shown as (in short date format) - date, 24:mm:ss. For example, if I picked 1/26/2021 00:01 AM, it is displayed as:

1/26/2021 24:01.

The general convention for 24 hour format should be:

1/26/2021 00:01

Screenshot from project's github demo/doco page:

image

josephwva commented 3 years ago

This is using the default native adapter. It works OK with moment adapter.