From e280cefced39c797feb2ed653b4119967dc04203 Mon Sep 17 00:00:00 2001 From: David <56174894+Constrat@users.noreply.github.com> Date: Tue, 22 Aug 2023 17:04:39 +0200 Subject: [PATCH] Update src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs Very clean! Thank you for the heads up Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com> --- src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs index 59bef88e6a..b1a3b961cd 100644 --- a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs @@ -2575,7 +2575,7 @@ namespace MaaWpfGui.ViewModels.UI if (File.Exists(jsonPath)) { JObject versionJson = (JObject)JsonConvert.DeserializeObject(File.ReadAllText(jsonPath)); - var currentTime = (ulong)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds; + var currentTime = (ulong)DateTimeOffset.UtcNow.ToUnixTimeSeconds(); var poolTime = (ulong)versionJson?["gacha"]["time"]; var activityTime = (ulong)versionJson?["activity"]["time"];