wvega / timepicker

A jQuery plugin to enhance standard form input fields helping users to select (or type) times
http://timepicker.co
GNU General Public License v2.0
216 stars 92 forks source link

User select PM value returns AM #138

Open haja-rimrubber opened 2 years ago

haja-rimrubber commented 2 years ago

Hello there,

We use timepicker when user select 2:00 PM from timepicker in our database we received data 2:00 AM !

Its not happen to all user, we investigate about this then we found that user use huawei mobile. Mozilla/5.0 (Linux; Android 10; LYA-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36 This is what we have. so this user whenever try to select timepicker value PM its return AM. Please advise how to fix this.

Our sample code:

jQuery('#time').timepicker({ timeFormat: 'h:mm p', interval: 30, minTime: 8:00 AM, maxTime: 6:00 PM, startTime: 8:00 AM, dynamic: false, dropdown: true, scrollbar: true, });