8 lines
176 B
Python
Raw Normal View History

2019-10-21 17:32:08 +02:00
from django.utils.timezone import utc
def utc_tzinfo_factory(offset):
if offset != 0:
raise AssertionError("database connection isn't set to UTC")
return utc