From 4cad26f79326af5db858a2e4824b1edf6f530147 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 22 Apr 2023 21:26:42 +0800 Subject: [PATCH] change moment api --- src/mobile-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mobile-main.js b/src/mobile-main.js index fad1b837..cd56231a 100644 --- a/src/mobile-main.js +++ b/src/mobile-main.js @@ -187,7 +187,7 @@ function setLanguage(locale) { } i18n.global.locale.value = locale; - moment.locale(locale, { + moment.updateLocale(locale, { months : app.config.globalProperties.$locale.getAllLongMonthNames(), monthsShort : app.config.globalProperties.$locale.getAllShortMonthNames(), weekdays : app.config.globalProperties.$locale.getAllLongWeekdayNames(),