We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6bf5f5 commit 3cf9fcbCopy full SHA for 3cf9fcb
Common/Constants/HardLimits.cs
@@ -52,5 +52,7 @@ public static class HardLimits
52
53
// Don't allow any firmware prior to 2024.
54
// Ridiculous edgecase: environment reports year at or prior to 2024, revert to 10 year limit just to be on the safe side
55
- public static readonly TimeSpan FirmwareMaxUptime = DateTime.Now.Year <= 2024 ? TimeSpan.FromDays(365 * 10) : DateTime.Now - new DateTime(2024, 1, 1);
+ public static readonly TimeSpan FirmwareMaxUptime = DateTime.UtcNow.Year <= 2024 ?
56
+ TimeSpan.FromDays(365 * 10) :
57
+ DateTime.UtcNow - new DateTime(2024, 1, 1, 0, 0, 0, DateTimeKind.Utc);
58
}
0 commit comments