Skip to content

Commit

Permalink
Fixes wrong dates in milestone calendar header
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Nov 19, 2024
1 parent 9285883 commit 6cffcf6
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions app/Domain/Tickets/Templates/calendar.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@

const calendar = new FullCalendar.Calendar(calendarEl, {
timeZone: leantime.i18n.__("usersettings.timezone"),

height:heightWindow,
initialView: '<?= session('usersettings.submenuToggle.myProjectCalendarView') ?>',
events: events,
Expand All @@ -168,8 +167,23 @@
dayHeaderFormat: leantime.dateHelper.getFormatFromSettings("dateformat", "luxon"),
eventTimeFormat: leantime.dateHelper.getFormatFromSettings("timeformat", "luxon"),
slotLabelFormat: leantime.dateHelper.getFormatFromSettings("timeformat", "luxon"),

nowIndicator: true,
views: {
timeGridDay: {

},
timeGridWeek: {

},
dayGridMonth: {
dayHeaderFormat: { weekday: 'short' },
},
multiMonthYear: {
showNonCurrentDates: true,
multiMonthTitleFormat: { month: 'long', year: 'numeric' },
dayHeaderFormat: { weekday: 'short' },
}
},
nowIndicator: true,
bootstrapFontAwesome: {
close: 'fa-times',
prev: 'fa-chevron-left',
Expand Down

0 comments on commit 6cffcf6

Please sign in to comment.