Skip to content

Commit

Permalink
Add pgx timezone comment
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim committed Jun 21, 2021
1 parent a18dd55 commit 13ad9cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/datastore/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ func (pgd *pgDatastore) computeRevisionRange(ctx context.Context, windowInverted
if err != nil {
return 0, 0, err
}
// RelationTupleTransaction is not timezone aware
// Explicitly use UTC before using as a query arg
now = now.UTC()

span.AddEvent("DB returned value for NOW()")
Expand Down

0 comments on commit 13ad9cd

Please sign in to comment.