From b5de517aad11bf1acaccef767157e84cc34f761a Mon Sep 17 00:00:00 2001 From: Tomazed Date: Mon, 30 Jan 2023 01:49:30 +0100 Subject: [PATCH] Generate days from date-fns locale --- .../components/widgets/CronExpressionBuilder.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/client/components/widgets/CronExpressionBuilder.vue b/client/components/widgets/CronExpressionBuilder.vue index f9c11c67..3997a0f3 100644 --- a/client/components/widgets/CronExpressionBuilder.vue +++ b/client/components/widgets/CronExpressionBuilder.vue @@ -137,31 +137,31 @@ export default { weekdays() { return [ { - text: this.$strings.WeekdaySunday, + text: this.$formatJsDate(new Date(2023, 0, 1), 'EEEE'), value: 0 }, { - text: this.$strings.WeekdayMonday, + text: this.$formatJsDate(new Date(2023, 0, 2), 'EEEE'), value: 1 }, { - text: this.$strings.WeekdayTuesday, + text: this.$formatJsDate(new Date(2023, 0, 3), 'EEEE'), value: 2 }, { - text: this.$strings.WeekdayWednesday, + text: this.$formatJsDate(new Date(2023, 0, 4), 'EEEE'), value: 3 }, { - text: this.$strings.WeekdayThursday, + text: this.$formatJsDate(new Date(2023, 0, 5), 'EEEE'), value: 4 }, { - text: this.$strings.WeekdayFriday, + text: this.$formatJsDate(new Date(2023, 0, 6), 'EEEE'), value: 5 }, { - text: this.$strings.WeekdaySaturday, + text: this.$formatJsDate(new Date(2023, 0, 7), 'EEEE'), value: 6 } ]