angular-moment-picker icon indicating copy to clipboard operation
angular-moment-picker copied to clipboard

Time selection uses both 12 hour and 24 hour format.

Open TwoRice opened this issue 7 years ago • 7 comments

When selecting a time, and choosing the hours the time is in 24 hr format and then when selecting the minutes it converts to 12 hr format. This is really annoying and confusing; the first time I used it I thought something had went wrong, because I had selected 1800, but I thought I was then selecting minutes for 0600. The time format should be consistent throughout the selection process.

TwoRice avatar Aug 04 '17 09:08 TwoRice

Same issue here. Were you able to solve it?

jlubeck avatar Aug 07 '17 20:08 jlubeck

No, I'm not currently using the component, just noticed it when I was looking for time pickers. I reckon its a design flaw rather than a bug.

TwoRice avatar Aug 07 '17 21:08 TwoRice

I am having the same issue. Any help here would be great.

pmaiya avatar Aug 15 '17 16:08 pmaiya

I found a solution from here : https://github.com/indrimuska/angular-moment-picker/issues/2 Add a config to your module like this: angular .module('myApp', ['moment-picker']) .config(['momentPickerProvider', function (momentPickerProvider) { momentPickerProvider.options({ minutesFormat: 'HH:mm' }); }]);

pmaiya avatar Aug 15 '17 16:08 pmaiya

Hi. I am using Amazing timepicker in angular4. here, i stuck in one point. where i want to give the time in 12hrs format. as by default amazing timepicker is wrking in 24hrs format. i want if users select 4:30pm then it shows 4:30pm in watch not 16:30.

please help me out asap.

Alka2209 avatar Oct 18 '18 06:10 Alka2209

I found a solution from here : #2 Add a config to your module like this: angular .module('myApp', ['moment-picker']) .config(['momentPickerProvider', function (momentPickerProvider) { momentPickerProvider.options({ minutesFormat: 'HH:mm' }); }]);

hey can u help me? Hi. I am using Amazing timepicker in angular4. here, i stuck in one point. where i want to give the time in 12hrs format. as by default amazing timepicker is wrking in 24hrs format. i want if users select 4:30pm then it shows 4:30pm in watch not 16:30.

please help me out asap

Alka2209 avatar Oct 18 '18 06:10 Alka2209

I found a solution from here : #2 Add a config to your module like this: angular .module('myApp', ['moment-picker']) .config(['momentPickerProvider', function (momentPickerProvider) { momentPickerProvider.options({ minutesFormat: 'HH:mm' }); }]);

hey can u help me? Hi. I am using Amazing timepicker in angular4. here, i stuck in one point. where i want to give the time in 12hrs format. as by default amazing timepicker is wrking in 24hrs format. i want if users select 4:30pm then it shows 4:30pm in watch not 16:30.

please help me out asap

did u got any solution??

kshitijak-iprogrammer avatar Dec 27 '19 11:12 kshitijak-iprogrammer