diff --git a/www/admin/inner.js b/www/admin/inner.js index 4bbac53ae..b3570a916 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -1322,7 +1322,7 @@ define([ var $start = $(start); var $end = $(end); // XXX new Date().toLocaleString('fr-fr', {month: 'long'}).replace(/./, c => c.toUpperCase()) - var is24h = false + var is24h = false; try { is24h = !new Intl.DateTimeFormat(navigator.language, { hour: 'numeric' }).format(0).match(/AM/); } catch (e) {} diff --git a/www/calendar/inner.js b/www/calendar/inner.js index 4a576b6d3..e21438746 100644 --- a/www/calendar/inner.js +++ b/www/calendar/inner.js @@ -226,8 +226,6 @@ Messages.calendar_dateTimeRange = "{0} {1} - {2}"; timegridDisplayTime: getTime, timegridDisplayPrimaryTime: getTime, popupDetailDate: function(isAllDay, start, end) { - var isSameDate = +start._date === +end._date; - var startDate = start._date.toLocaleDateString(); var endDate = end._date.toLocaleDateString(); if (isAllDay) {