Skip to content

Commit

Permalink
Update comment to TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Jun 5, 2024
1 parent eb70d04 commit 6d0193e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/features/versioning/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ def _get_latest_versions(
params={
"environment_id": environment_id,
"api_key": environment_api_key,
# It seems as though there is a timezone issue when using postgres's
# built in now() function, so we pass in the current time from python.
# TODO:
# It seems as though there is a timezone issue when using postgres's
# built in now() function, so we pass in the current time from python.
# Using <= now() in the SQL query returns incorrect results.
# More investigation is needed here to understand the cause.
"live_from_before": timezone.now().isoformat(),
},
)

0 comments on commit 6d0193e

Please sign in to comment.