samber / slog-chi

🚨 Chi middleware for slog logger
https://pkg.go.dev/github.com/samber/slog-chi
MIT License
44 stars 6 forks source link

use UTC time for "start" #10

Closed ahsetiaki closed 3 days ago

ahsetiaki commented 4 days ago

First of all, thanks for this middleware. Great work btw.

I think for start it should use UTC time.Now().UTC() instead of local time.Now().

https://github.com/samber/slog-chi/blob/9af9b759189e53bb03767d97061923f6e85d14d6/middleware.go#L108

hdyt?

samber commented 3 days ago

thanks for the feedback

upgrade to 1.11.2