From 25eaea8687986c6487e3c6730273fa6345320126 Mon Sep 17 00:00:00 2001 From: src_resources Date: Tue, 14 May 2024 22:07:57 +0800 Subject: [PATCH] fix: calendar comparing bug --- src/main/kotlin/top/mcfpp/util/UwU.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/top/mcfpp/util/UwU.kt b/src/main/kotlin/top/mcfpp/util/UwU.kt index a858e2c7..5ee05822 100644 --- a/src/main/kotlin/top/mcfpp/util/UwU.kt +++ b/src/main/kotlin/top/mcfpp/util/UwU.kt @@ -65,7 +65,7 @@ object UwU { "滴,编译器喵为您报时~现在是" + SimpleDateFormat("HH:mm").format(date) } } else if (s == "疯狂星期四,vivo50") { - if (Calendar.DAY_OF_WEEK !== Calendar.THURSDAY) { + if (Calendar.getInstance().get(Calendar.DAY_OF_WEEK) != Calendar.THURSDAY) { s += "。欸……什么,今天不是星期四吗(失落" } }