Fix showing on one hour less every date select.

This commit is contained in:
Svitlana Yepifanova 2016-02-17 23:04:02 +02:00
parent abea18bad6
commit 4662ac571d
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }

File diff suppressed because one or more lines are too long