Skip to content

Commit ee04615

Browse files
committed
revert database.Now change in favor of #9482
1 parent 055fc2e commit ee04615

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/agent.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import (
3838
"github.com/coder/coder/v2/agent/reconnectingpty"
3939
"github.com/coder/coder/v2/buildinfo"
4040
"github.com/coder/coder/v2/cli/gitauth"
41+
"github.com/coder/coder/v2/coderd/database"
4142
"github.com/coder/coder/v2/codersdk"
4243
"github.com/coder/coder/v2/codersdk/agentsdk"
4344
"github.com/coder/coder/v2/tailnet"
@@ -522,7 +523,7 @@ func (a *agent) reportLifecycleLoop(ctx context.Context) {
522523
func (a *agent) setLifecycle(ctx context.Context, state codersdk.WorkspaceAgentLifecycle) {
523524
report := agentsdk.PostLifecycleRequest{
524525
State: state,
525-
ChangedAt: time.Now().UTC(), // Like `database.Now()`, but avoid importing coderd/database.
526+
ChangedAt: database.Now(),
526527
}
527528

528529
a.lifecycleMu.Lock()

0 commit comments

Comments
 (0)