Fix timezone issue in widget
This commit is contained in:
@@ -172,6 +172,9 @@
|
||||
}
|
||||
syncCalendarToday(replacement);
|
||||
calendar.replaceWith(replacement);
|
||||
if (Luxtools.initChronologicalEventTimes) {
|
||||
Luxtools.initChronologicalEventTimes();
|
||||
}
|
||||
}
|
||||
|
||||
function loadCalendarMonth(calendar, targetYear, targetMonth, persistState) {
|
||||
|
||||
@@ -185,4 +185,6 @@
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
if (Scratchpads && Scratchpads.init) Scratchpads.init();
|
||||
}, false);
|
||||
|
||||
Luxtools.initChronologicalEventTimes = initChronologicalEventTimes;
|
||||
})();
|
||||
|
||||
@@ -241,7 +241,8 @@ class ChronologicalCalendarWidget
|
||||
|
||||
$html .= '<li class="luxtools-calendar-event"' . $style . $dataAttrs . '>';
|
||||
if ($showTimes && !$event->allDay && $event->time !== '') {
|
||||
$html .= '<span class="luxtools-calendar-event-time">' . hsc($event->time) . '</span>';
|
||||
$html .= '<span class="luxtools-calendar-event-time luxtools-event-time" data-luxtools-start="'
|
||||
. hsc($event->startIso) . '">' . hsc($event->time) . '</span>';
|
||||
}
|
||||
$html .= '<span class="luxtools-calendar-event-title">' . hsc($event->summary) . '</span>';
|
||||
$html .= '</li>';
|
||||
|
||||
Reference in New Issue
Block a user