File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
"golang.org/x/sync/errgroup"
11
11
"golang.org/x/xerrors"
12
12
13
+ "github.com/coder/coder/v2/coderd/database/dbtime"
13
14
"github.com/coder/coder/v2/coderd/notifications/dispatch"
14
15
"github.com/coder/coder/v2/coderd/notifications/render"
15
16
"github.com/coder/coder/v2/coderd/notifications/types"
@@ -291,7 +292,7 @@ func (n *notifier) newSuccessfulDispatch(msg database.AcquireNotificationMessage
291
292
return dispatchResult {
292
293
notifier : n .id ,
293
294
msg : msg .ID ,
294
- ts : time .Now (),
295
+ ts : dbtime .Now (),
295
296
}
296
297
}
297
298
@@ -311,7 +312,7 @@ func (n *notifier) newFailedDispatch(msg database.AcquireNotificationMessagesRow
311
312
return dispatchResult {
312
313
notifier : n .id ,
313
314
msg : msg .ID ,
314
- ts : time .Now (),
315
+ ts : dbtime .Now (),
315
316
err : err ,
316
317
retryable : retryable ,
317
318
}
@@ -321,7 +322,7 @@ func (n *notifier) newInhibitedDispatch(msg database.AcquireNotificationMessages
321
322
return dispatchResult {
322
323
notifier : n .id ,
323
324
msg : msg .ID ,
324
- ts : time .Now (),
325
+ ts : dbtime .Now (),
325
326
retryable : false ,
326
327
inhibited : true ,
327
328
}
You can’t perform that action at this time.
0 commit comments