mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Fix showing on one hour less every date select ('h:i a'). Again
This commit is contained in:
parent
b4d9453200
commit
2faeb109f4
@ -152,7 +152,7 @@ var DateFormatter;
|
|||||||
vMeriOffset = _compare(mer, vSettings.meridiem[0]) ? 0 :
|
vMeriOffset = _compare(mer, vSettings.meridiem[0]) ? 0 :
|
||||||
(_compare(mer, vSettings.meridiem[1]) ? 12 : -1);
|
(_compare(mer, vSettings.meridiem[1]) ? 12 : -1);
|
||||||
if (iDatePart >= 1 && iDatePart <= 12 && vMeriOffset > -1) {
|
if (iDatePart >= 1 && iDatePart <= 12 && vMeriOffset > -1) {
|
||||||
out.hour = iDatePart + vMeriOffset - 1;
|
out.hour = iDatePart + vMeriOffset;
|
||||||
} else if (iDatePart >= 0 && iDatePart <= 23) {
|
} else if (iDatePart >= 0 && iDatePart <= 23) {
|
||||||
out.hour = iDatePart;
|
out.hour = iDatePart;
|
||||||
}
|
}
|
||||||
|
2
build/jquery.datetimepicker.full.min.js
vendored
2
build/jquery.datetimepicker.full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user