mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
Maybe fix DST problems and also the infinite money glitch at the 23rd hour of the day
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user