jquery-timepicker icon indicating copy to clipboard operation
jquery-timepicker copied to clipboard

Repopulating timepicker with times earlier than scrollDefault

Open skenny opened this issue 7 years ago • 1 comments

I have a timepicker initialized with the following options:

{ timeFormat: 'g:i A', scrollDefault: '08:00', step: 15 }

When repopulating the input on page load, if the time value is earlier than 8:00AM, the time appears as PM. For example, if I previously entered "7:30 AM" and then reload the page, I see "7:30 PM".

I tested this with various times and various scrollDefault values and it is consistent.

Removing the scrollDefault option fixes the issue.

skenny avatar Nov 21 '17 15:11 skenny

I have a same problem when set step option to other value, 'scrollDefault' option not working.

https://jsfiddle.net/m_alikhani/uejx9vrn/14/

m-alikhani avatar Sep 20 '18 08:09 m-alikhani

I'm not able to reproduce this bug in the current version of timepicker.

jonthornton avatar Oct 01 '22 20:10 jonthornton