Add debug log to MMMM token

This commit is contained in:
Richard Zink committed 2026-10-07 13:31:53 +02:00
1 parent baafbcf760
commit bf109e8225
1 file changed
+3 -1
+3 -1
View File
@@ -865,7 +865,9 @@ var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({
result += date.getFullYear(); result += date.getFullYear();
i += 1; i += 1;
} else if (ch === 'M' && format.substr(i, 4) === 'MMMM') { } else if (ch === 'M' && format.substr(i, 4) === 'MMMM') {
result += t(monthKeys[date.getMonth()]); var tMonthFull = t(monthKeys[date.getMonth()]);
console.log('MMMM token', date.getMonth(), '->', tMonthFull, 'lang=', window.CONFIG && window.CONFIG.language);
result += tMonthFull;
i += 4; i += 4;
} else if (ch === 'M' && format.substr(i, 3) === 'MMM') { } else if (ch === 'M' && format.substr(i, 3) === 'MMM') {
result += t(monthKeys[date.getMonth()].substring(0, 3) + '.'); result += t(monthKeys[date.getMonth()].substring(0, 3) + '.');