Enable meridiem on TimePicker

I would like to enable meridiem on a TimePicker component (use 12-hour clock). The trouble is that, although I set it to true (meridiemEnable: true), that will be ignored because ilib is loaded and the current locale's rules will determine whether a 12-hour or 24-hour clock will be used..
So any idea of how to ignore that tiny rule of ilib ??


  • I'd have to look into ilib again, but would you be able to set the format in ilib so it propagates to TimePicker?
  • Solved it! I just add "clock": "12" to the json file localeinfo.json located in the project folder inside lib\enyo-ilib\ilib\locale\es (spanish is the language that doesn't have 12-hour format by default)
Sign In or Register to comment.