0

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.

danielrvt-sgb
  • 1,118
  • 5
  • 17
  • 33

1 Answers1

2

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.

Simon MacDonald
  • 23,253
  • 5
  • 58
  • 74