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>
This commit is contained in:
David
2023-08-22 17:04:39 +02:00
committed by GitHub
parent 3fa182d735
commit e280cefced

View File

@@ -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"];