fix #266, luxon is 1-indexed not --indexed

This commit is contained in:
lesion 2023-05-06 12:01:04 +02:00
parent 4c97d67bdf
commit 43e498acc5
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -153,7 +153,7 @@ export default {
if (freq === '1w' || freq === '2w') {
return this.$t(`event.recurrent_${freq}_days`, { days: weekDay }).toUpperCase()
} else if (freq === '1m' || freq === '2m') {
const n = Math.floor((date.day) / 7) + 1
const n = Math.floor((date.day-1) / 7) + 1
const patterns = [
{ label: this.$t(`event.recurrent_${freq}_days`, { days: date.day }), key: 'ordinal' }