Skip to content

Commit

Permalink
database: Use UTC time for OperationDocument.LastTransitionTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Barnes committed Feb 17, 2025
1 parent e6b9d96 commit 57b2e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (doc *OperationDocument) ToStatus() *arm.Operation {
// is intended to be used with DBClient.UpdateOperationDoc.
func (doc *OperationDocument) UpdateStatus(status arm.ProvisioningState, err *arm.CloudErrorBody) bool {
if doc.Status != status {
doc.LastTransitionTime = time.Now()
doc.LastTransitionTime = time.Now().UTC()
doc.Status = status
doc.Error = err
return true
Expand Down

0 comments on commit 57b2e34

Please sign in to comment.