fix(cmd/gf): "unknown time zone" when using "gf gen dao" for clickhouse on windows platform (#4368)

fix bug: could not load time location: "unknown time zone Asia/Shanghai"

The bug will appear when I use gf in windows to do "gf gen dao" for
clickhouse.
This commit is contained in:
Hunk Zhu
2025-08-15 13:35:59 +08:00
committed by GitHub
parent 5fa656d1cc
commit 8cb64c9f88

View File

@ -7,6 +7,8 @@
package main
import (
_ "time/tzdata"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/os/gctx"