简体   繁体   中英

Jquery Datetime picker Error

When I click outside the datetime picker after selecting a date and a time, it will reduce time by 1 hour.

Ex: if I selected 2.00 PM and click outside then it automatically changes the value to 1.00 PM.

How to avoid this issue ?

HTML -

<input type="text" id="txtDt">

JS -

$('#txtDt').datetimepicker({

       format: 'd/m/Y g:i A',
       formatTime: 'g:i A'

});

I got this from here - http://xdsoft.net/jqplugins/datetimepicker/

Try it:

$('#txtDt').datetimepicker({

       format: 'd/m/Y h:i A',
       formatTime: 'h:i A',
       validateOnBlur:false

});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM