Skip to content

Commit b102120

Browse files
module: Remove calls to time.Time.UTC(). signalsciences/sigsci#21114
1 parent 29ad76c commit b102120

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

module.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func NewModule(h http.Handler, options ...ModuleConfigOption) (*Module, error) {
5959

6060
// Call ModuleInit to initialize the module data, so that the agent is
6161
// registered on module creation
62-
now := time.Now().UTC()
62+
now := time.Now()
6363
in := RPCMsgIn{
6464
ModuleVersion: m.config.ModuleIdentifier(),
6565
ServerVersion: m.config.ServerIdentifier(),
@@ -84,7 +84,7 @@ func Version() string {
8484

8585
// ServeHTTP satisfies the http.Handler interface
8686
func (m *Module) ServeHTTP(w http.ResponseWriter, req *http.Request) {
87-
start := time.Now().UTC()
87+
start := time.Now()
8888
finiwg := sync.WaitGroup{}
8989

9090
// Use the inspector init/fini functions if available
@@ -309,7 +309,7 @@ func (m *Module) inspectorUpdateRequest(inspin RPCMsgIn2) error {
309309
// End-users of the golang module never need to use this
310310
// directly and it is only exposed for performance testing
311311
func NewRPCMsgIn(r *http.Request, postbody []byte, code int, size int64, dur time.Duration, module, server string) *RPCMsgIn {
312-
now := time.Now().UTC()
312+
now := time.Now()
313313

314314
// assemble a message to send to inspector
315315
tlsProtocol := ""

0 commit comments

Comments
 (0)