From 96ea6d60e3269d64554e173a6be594fadbd4c693 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Wed, 8 Jan 2025 23:03:38 +0800 Subject: [PATCH] fix: #121 Signed-off-by: bggRGjQaUbCoE --- lib/utils/utils.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index 8c774a41..36caf058 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -811,8 +811,8 @@ class Utils { return; } DateTime latest = DateTime.parse(res.data[0]['created_at']); - latest = latest.copyWith(hour: latest.hour + 8); - DateTime current = DateTime.parse(BuildConfig.buildTime); + DateTime current = DateTime.parse('${BuildConfig.buildTime}Z'); + current = current.copyWith(hour: current.hour - 8); if (current.compareTo(latest) < 0) { SmartDialog.show( animationType: SmartAnimationType.centerFade_otherSlide,