File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import (
38
38
"github.com/coder/coder/v2/agent/reconnectingpty"
39
39
"github.com/coder/coder/v2/buildinfo"
40
40
"github.com/coder/coder/v2/cli/gitauth"
41
+ "github.com/coder/coder/v2/coderd/database"
41
42
"github.com/coder/coder/v2/codersdk"
42
43
"github.com/coder/coder/v2/codersdk/agentsdk"
43
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 ) {
523
524
report := agentsdk.PostLifecycleRequest {
524
525
State : state ,
525
- ChangedAt : time . Now (). UTC (), // Like ` database.Now()`, but avoid importing coderd/database.
526
+ ChangedAt : database .Now (),
526
527
}
527
528
528
529
a .lifecycleMu .Lock ()
You can’t perform that action at this time.
0 commit comments