From e3b63c3a02fd80641733daf27e79b40ff081a046 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期一, 01 十二月 2025 09:37:12 +0800
Subject: [PATCH] 2025年12月01日09:36:55
---
app/src/main/java/com/hdl/photovoltaic/utils/TimeUtils.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/src/main/java/com/hdl/photovoltaic/utils/TimeUtils.java b/app/src/main/java/com/hdl/photovoltaic/utils/TimeUtils.java
index 760184a..25ea163 100644
--- a/app/src/main/java/com/hdl/photovoltaic/utils/TimeUtils.java
+++ b/app/src/main/java/com/hdl/photovoltaic/utils/TimeUtils.java
@@ -47,14 +47,14 @@
switch (timeType) {
case TimeType.day: {
timeDateFormat = TimeUtils.zhDateYearMonthDayFormat;
- if (!UserConfigManage.getInstance().isZh()) {
+ if (!UserConfigManage.getInstance().getCurrentAppLanguage().equals(Languages.zh)) {
timeDateFormat = TimeUtils.enDateYearMonthDayFormat;
}
}
break;
case TimeType.month: {
timeDateFormat = TimeUtils.zhDateYearMonthFormat;
- if (!UserConfigManage.getInstance().isZh()) {
+ if (!UserConfigManage.getInstance().getCurrentAppLanguage().equals(Languages.zh)) {
timeDateFormat = TimeUtils.enDateYearMonthFormat;
}
}
@@ -62,7 +62,7 @@
case TimeType.year:
case TimeType.all: {
timeDateFormat = TimeUtils.zhDateYearFormat;
- if (!UserConfigManage.getInstance().isZh()) {
+ if (!UserConfigManage.getInstance().getCurrentAppLanguage().equals(Languages.zh)) {
timeDateFormat = TimeUtils.enDateYearFormat;
}
}
--
Gitblit v1.8.0