Fix datepicker locale when using min/max

This commit is contained in:
Richard Schreiber
2025-04-09 14:38:27 +02:00
committed by GitHub
parent ea955c779e
commit 2bb324f885
2 changed files with 1 additions and 2 deletions

View File

@@ -69,8 +69,6 @@ var cart = {
$(function () {
"use strict";
moment.locale($("body").attr("data-locale").substr(0, 2));
if ($("#cart-deadline").length) {
cart.init();
}

View File

@@ -328,6 +328,7 @@ $(function () {
"use strict";
$("body").removeClass("nojs");
moment.locale($("body").attr("data-datetimelocale"));
var scrollpos = sessionStorage ? sessionStorage.getItem('scrollpos') : 0;
if (scrollpos) {