AuraQ / ClockPickerForMendix

Clockpicker widget for Mendix
Apache License 2.0
1 stars 3 forks source link

Clock shows 0:00 PM when used with empty value with 24h time format #10

Open KilianCroese opened 6 years ago

KilianCroese commented 6 years ago

I'm using Mendix 6.6.0. Don't think this matters.

I have the Clock Picker for Mendix on a page connected to a datetime attribute that has an empty value. The time format is set to 24 Hour.

Now when I open the Clock Picker. It shows 00:00 PM. I've found 3 issues with this:

  1. 00:00 is AM and not PM
  2. The PM should not even be shown, since the time format is set to 24 Hour
  3. When you select a time below 12:00, say 10:00. This is stored as 22:00 since it thinks you selected 10:00 PM.

I don't this this is an issue with the widget itself, but in the library used. I've created a simpel fix in the library. Unfortunately the library itself is not maintained anymore.

Please see: https://github.com/KilianCroese/ClockPickerForMendix/commit/56db771eb1ec972e4e4f53e3f6bf7da3179a7a72