From 0ebb46763002e57d0fd497c21c84c62631333831 Mon Sep 17 00:00:00 2001 From: lesion Date: Tue, 21 Mar 2023 01:15:35 +0100 Subject: [PATCH] minor --- plugins/time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/time.js b/plugins/time.js index 63cb95ff..c3568cbd 100644 --- a/plugins/time.js +++ b/plugins/time.js @@ -80,7 +80,7 @@ export default ({ app, store }, inject) => { if (frequency === '1w' || frequency === '2w') { recurrent = app.i18n.t(`event.recurrent_${frequency}_days`, { days: DateTime.fromSeconds(parent.start_datetime).toFormat('EEEE') }) } else if (frequency === '1m' || frequency === '2m') { - const d = type === 'ordinal' ? DateTime.fromSeconds(parent.start_datetime).toDate() : DateTime.fromSeconds(parent.start_datetime).toFormat('EEEE') + const d = type === 'ordinal' ? DateTime.fromSeconds(parent.start_datetime).day : DateTime.fromSeconds(parent.start_datetime).toFormat('EEEE') if (type === 'ordinal') { recurrent = app.i18n.t(`event.recurrent_${frequency}_days`, { days: d }) } else {