diff --git a/package.json b/package.json index bfd23a6ee62d5..0d6482d20a945 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crawlab-ui", - "version": "0.6.3-10", + "version": "0.6.3-11", "private": false, "author": { "name": "Marvin Zhang", diff --git a/src/components/schedule/ScheduleCron.vue b/src/components/schedule/ScheduleCron.vue index c6bdec0bbea9a..8d55103b18983 100644 --- a/src/components/schedule/ScheduleCron.vue +++ b/src/components/schedule/ScheduleCron.vue @@ -4,7 +4,6 @@ import { computed } from 'vue'; import { CronExpression, parseExpression } from 'cron-parser'; import cronstrue from 'cronstrue/i18n'; import dayjs from 'dayjs'; -import en from 'dayjs/locale/en.js'; import zh from 'dayjs/locale/zh.js'; import localizedFormat from 'dayjs/plugin/localizedFormat'; import { useI18n } from 'vue-i18n'; @@ -52,9 +51,9 @@ const next = computed(() => { return t('common.status.unknown'); } if (getI18n().global.locale.value === 'zh') { - return dayjs(interval.value.next().getTime()).locale(zh)?.format('llll'); + return dayjs(interval.value.next().getTime())?.locale(zh)?.format('llll'); } else { - return dayjs(interval.value.next().getTime())?.locale(en)?.format('llll'); + return dayjs(interval.value.next().getTime())?.format('llll'); } });