fix: use local timezone in API response
All checks were successful
Build & Deploy Go API / build (push) Successful in 47s
All checks were successful
Build & Deploy Go API / build (push) Successful in 47s
This commit is contained in:
2
main.go
2
main.go
@@ -27,7 +27,7 @@ func main() {
|
|||||||
resp := Response{
|
resp := Response{
|
||||||
Service: "demo-go-api",
|
Service: "demo-go-api",
|
||||||
Message: "Hello from Go API!",
|
Message: "Hello from Go API!",
|
||||||
Time: time.Now().Format(time.RFC3339),
|
Time: time.Now().Local().Format(time.RFC3339),
|
||||||
Hostname: hostname,
|
Hostname: hostname,
|
||||||
Version: os.Getenv("VERSION"),
|
Version: os.Getenv("VERSION"),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user