We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055fc2e commit ee04615Copy full SHA for ee04615
agent/agent.go
@@ -38,6 +38,7 @@ import (
38
"github.com/coder/coder/v2/agent/reconnectingpty"
39
"github.com/coder/coder/v2/buildinfo"
40
"github.com/coder/coder/v2/cli/gitauth"
41
+ "github.com/coder/coder/v2/coderd/database"
42
"github.com/coder/coder/v2/codersdk"
43
"github.com/coder/coder/v2/codersdk/agentsdk"
44
"github.com/coder/coder/v2/tailnet"
@@ -522,7 +523,7 @@ func (a *agent) reportLifecycleLoop(ctx context.Context) {
522
523
func (a *agent) setLifecycle(ctx context.Context, state codersdk.WorkspaceAgentLifecycle) {
524
report := agentsdk.PostLifecycleRequest{
525
State: state,
- ChangedAt: time.Now().UTC(), // Like `database.Now()`, but avoid importing coderd/database.
526
+ ChangedAt: database.Now(),
527
}
528
529
a.lifecycleMu.Lock()
0 commit comments