fix time calculations & undo config changes

This commit is contained in:
wish
2023-07-16 21:14:44 +10:00
parent 65ea285ee4
commit 411477f9b3
4 changed files with 47 additions and 74 deletions

View File

@@ -23,3 +23,7 @@ func TimeWeekStart() time.Time {
func TimeWeekNext() time.Time {
return TimeWeekStart().Add(time.Hour * 24 * 7)
}
func TimeGameAbsolute() uint32 {
return uint32((TimeAdjusted().Unix() - 2160) % 5760)
}