Fix wrong month name in yearly recurring events #1398

This commit is contained in:
yflory 2024-01-30 15:54:49 +01:00
parent 6daf688e91
commit 95cdae304d
1 changed files with 3 additions and 1 deletions

View File

@ -1377,6 +1377,8 @@ ICS ==> create a new event with the same UID and a RECURRENCE-ID field (with a v
}
if (m) {
m = m.map(function (n) {
tmp.setDate(15);
tmp.setHours(12);
tmp.setMonth(n-1);
return tmp.toLocaleDateString(getDateLanguage(), { month: 'long' });
});
@ -1463,7 +1465,7 @@ ICS ==> create a new event with the same UID and a RECURRENCE-ID field (with a v
dayStr,
monthStr
]),
last: last ? '-1' + dayStr : undefined,
last: last ? '-1' + dayCode : undefined,
lastStr: Messages._getKey('calendar_rec_'+key+'_nth', [
Messages['calendar_nth_last'],
dayStr,