[英]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. 当我在选择日期和时间后在datetime选择器外部单击时,它将减少1小时的时间。
Ex: if I selected 2.00 PM and click outside then it automatically changes the value to 1.00 PM. 例如:如果我选择2.00 PM并单击“ outside”,那么它将自动将值更改为1.00 PM。
How to avoid this issue ? 如何避免这个问题?
HTML - HTML-
<input type="text" id="txtDt">
JS - JS-
$('#txtDt').datetimepicker({
format: 'd/m/Y g:i A',
formatTime: 'g:i A'
});
I got this from here - http://xdsoft.net/jqplugins/datetimepicker/ 我从这里得到的-http://xdsoft.net/jqplugins/datetimepicker/
Try it: 试试吧:
$('#txtDt').datetimepicker({
format: 'd/m/Y h:i A',
formatTime: 'h:i A',
validateOnBlur:false
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.