fix bug #6326
This commit is contained in:
parent
a6068736cb
commit
03d8b80d45
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@
|
||||||
|
|
||||||
return this.calendar(tableYear, tableMonth, (cell) => {
|
return this.calendar(tableYear, tableMonth, (cell) => {
|
||||||
// normalize date offset from the dates provided by jsCalendar
|
// normalize date offset from the dates provided by jsCalendar
|
||||||
if (cell.date instanceof Date) cell.date.setTime(cell.date.getTime() + cell.date.getTimezoneOffset() * 60000);
|
// Comment out this code to fix daylight saving time bug
|
||||||
|
// if (cell.date instanceof Date) cell.date.setTime(cell.date.getTime() + cell.date.getTimezoneOffset() * 60000);
|
||||||
|
|
||||||
const time = cell.date && clearHours(cell.date);
|
const time = cell.date && clearHours(cell.date);
|
||||||
const dateIsInCurrentMonth = cell.date && tableMonth === cell.date.getMonth();
|
const dateIsInCurrentMonth = cell.date && tableMonth === cell.date.getMonth();
|
||||||
|
|
Loading…
Add table
Reference in a new issue