From b448836ee900f748e68ba04f95338d288de8edce Mon Sep 17 00:00:00 2001 From: Thomas Ingles Date: Tue, 23 Apr 2024 21:04:13 +0200 Subject: [PATCH] Idea : initialize calendar view scroll at time https://www.freecodecamp.org/news/the-ultimate-guide-to-javascript-date-and-moment-js/#format-the-date-and-time-with-moment-js --- assets/js/utils/calendar_default_view.js | 2 +- assets/js/utils/calendar_table_view.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/utils/calendar_default_view.js b/assets/js/utils/calendar_default_view.js index e8e625d5..41a5f63d 100755 --- a/assets/js/utils/calendar_default_view.js +++ b/assets/js/utils/calendar_default_view.js @@ -1489,7 +1489,7 @@ App.Utils.CalendarDefaultView = (function () { firstDay: firstWeekdayNumber, slotDuration: '00:15:00', snapDuration: '00:15:00', - scrollTime: '07:00:00', + scrollTime: moment().format('HH') + ':00:00', slotLabelInterval: '01:00', eventTimeFormat: timeFormat, eventTextColor: '#333', diff --git a/assets/js/utils/calendar_table_view.js b/assets/js/utils/calendar_table_view.js index 0f1e9490..c436effc 100755 --- a/assets/js/utils/calendar_table_view.js +++ b/assets/js/utils/calendar_table_view.js @@ -697,7 +697,7 @@ App.Utils.CalendarTableView = (function () { firstDay: firstWeekdayNumber, slotDuration: '00:15:00', snapDuration: '00:15:00', - scrollTime: '07:00:00', + scrollTime: moment().format('HH') + ':00:00', slotLabelInterval: '01:00', eventTimeFormat: timeFormat, eventTextColor: '#333',