fix: use local timezone in API response
All checks were successful
Build & Deploy Go API / build (push) Successful in 47s

This commit is contained in:
Joe
2026-07-19 17:54:44 +08:00
parent 55e0e7ba52
commit 6020080ecb

View File

@@ -27,7 +27,7 @@ func main() {
resp := Response{
Service: "demo-go-api",
Message: "Hello from Go API!",
Time: time.Now().Format(time.RFC3339),
Time: time.Now().Local().Format(time.RFC3339),
Hostname: hostname,
Version: os.Getenv("VERSION"),
}