fix time going negative

This commit is contained in:
CWX
2025-01-25 10:54:01 +00:00
parent 803d136051
commit b4ec3ef2aa
+1 -1
View File
@@ -154,7 +154,7 @@ public class TimeUtil
int minutes = now.Minute;
// If minutes greater than 0, subtract 1 hour
if (minutes > 0)
if (hours > 0 && minutes > 0)
{
hours--;
}