From 4db3692de0001eea35f938c1224181746e72933a Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 27 十一月 2025 21:30:07 +0800
Subject: [PATCH] 支持创建阿拉伯语言的脚本文件夹

---
 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