Open witiokz opened 10 years ago
could you update _onTimeChange method with this code:
if (hour !== false) {
hour = parseInt(hour, 10);
hour = Math.abs(hour);
}
if (minute !== false) {
minute = parseInt(minute, 10);
minute = Math.abs(minute);
}
if (second !== false) {
second = parseInt(second, 10);
second = Math.abs(second);
}
if (millisec !== false) {
millisec = parseInt(millisec, 10);
millisec = Math.abs(millisec);
}
if (microsec !== false) {
microsec = parseInt(microsec, 10);
microsec = Math.abs(microsec);
}
Thanks.
When timepicker is using with this configuration:
and when user use spinner to select time and after that type "-" before that time value, value becomes negative. Please, see video and html in attacment (jpg should be renamed to zip).