Skip to content
Snippets Groups Projects
Commit 80989e4d authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fixed date format in the date selector for fullcalendar in the sidebar, fixes #3809

parent f04f6e74
No related branches found
No related tags found
No related merge requests found
...@@ -754,7 +754,10 @@ class Fullcalendar ...@@ -754,7 +754,10 @@ class Fullcalendar
// Update sidebar value // Update sidebar value
let element = jQuery('#booking-plan-jmpdate,#date_select').first(); let element = jQuery('#booking-plan-jmpdate,#date_select').first();
element.val(changedMoment.toLocaleDateString('de-DE')); let padded_date = pad(changedMoment.getDate(), 2, '0')
+ '.' + pad(changedMoment.getMonth() + 1, 2, '0')
+ '.' + changedMoment.getFullYear();
element.val(padded_date);
if (element.is('#booking-plan-jmpdate')) { if (element.is('#booking-plan-jmpdate')) {
//Store the date in the sessionStorage: //Store the date in the sessionStorage:
sessionStorage.setItem('booking_plan_date', changed_date); sessionStorage.setItem('booking_plan_date', changed_date);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment