Some checks failed
Build docker and publish / build (20.15.1) (push) Has been cancelled
Co-Authored-By: claude-flow <ruv@ruv.net>
22 lines
381 B
Go
22 lines
381 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/perfect-panel/server/cmd"
|
|
)
|
|
|
|
func init() {
|
|
// Ensure time.Local matches DSN loc=Asia/Shanghai.
|
|
// In scratch Docker images, Go defaults to UTC even with TZ set,
|
|
// causing time range queries to shift by 8 hours.
|
|
loc, err := time.LoadLocation("Asia/Shanghai")
|
|
if err == nil {
|
|
time.Local = loc
|
|
}
|
|
}
|
|
|
|
func main() {
|
|
cmd.Execute()
|
|
}
|