Question

I'm using this to choose times in my app: https://github.com/phonegap/phonegap-plugins/tree/master/Android/DatePicker

However, when the native time picker pops up, the time is shown in 24h format instead of 12h, is there a way to make the time appear in 12h format in the picker?

After I choose the time, the input display it in 12h, but when I'm whatch the picker options, they all are in 24h.

Was it helpful?

Solution

If you modify line 102 of DatePickerPlugin.java to be:

mMinutes, false);

the "false" will tell the time picker to show in 12 hour format.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top