Skip to content

Commit

Permalink
Merge pull request #12 from sendbird/fix/psycopg2.9
Browse files Browse the repository at this point in the history
Fix compatibilty with psycopg 2.9
  • Loading branch information
dlunch authored Jan 15, 2025
2 parents 3f9e426 + 7bba2ed commit d5ba510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/db/backends/postgresql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


def utc_tzinfo_factory(offset):
if offset != 0:
# Offset is an int in psycopg2 < 2.9, then switched to timedelta.
if offset:
raise AssertionError("database connection isn't set to UTC")
return utc

0 comments on commit d5ba510

Please sign in to comment.