Commit ebcfb520 authored by Weixin Deng's avatar Weixin Deng
Browse files

Add time zone

parent eabe38d4
......@@ -18,6 +18,12 @@ func Assert(assert bool, msg ...any) {
}
}
func setTimeZone() {
loc, err := time.LoadLocation("US/Pacific")
Assert(err == nil, err)
time.Local = loc
}
type Args struct {
startServer bool
startClient bool
......@@ -235,6 +241,7 @@ func startServer(args *Args) {
}
func main() {
setTimeZone()
args := parseArgs()
if args.startClient {
params := make(map[string]any)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment