mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-21 23:22:34 +01:00
Move time utilities (TimeAdjusted, TimeMidnight, TimeWeekStart, TimeWeekNext, TimeGameAbsolute) from channelserver into common/gametime to break the inappropriate dependency where signserver, entranceserver, and api imported the 38K-line channelserver package just for time functions. Replace all fmt.Printf debug logging in sys_session.go and handlers_object.go with structured zap logging for consistent observability.
13 lines
396 B
Go
13 lines
396 B
Go
package channelserver
|
|
|
|
import (
|
|
"erupe-ce/common/gametime"
|
|
"time"
|
|
)
|
|
|
|
func TimeAdjusted() time.Time { return gametime.Adjusted() }
|
|
func TimeMidnight() time.Time { return gametime.Midnight() }
|
|
func TimeWeekStart() time.Time { return gametime.WeekStart() }
|
|
func TimeWeekNext() time.Time { return gametime.WeekNext() }
|
|
func TimeGameAbsolute() uint32 { return gametime.GameAbsolute() }
|