Maybe fix DST problems and also the infinite money glitch at the 23rd hour of the day

This commit is contained in:
barelyprofessional
2026-04-10 00:06:06 -05:00
parent 2c55e94bfd
commit 1461c1043a

View File

@@ -544,6 +544,6 @@ public static class Money
var systemTz = TimeZoneInfo.FindSystemTimeZoneById(tz.Value);
var now = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, systemTz);
return new DateTimeOffset(now.Date, systemTz.BaseUtcOffset);
return new DateTimeOffset(now.Date, systemTz.GetUtcOffset(now.Date));
}
}