Skip to content

Commit 0fcc722

Browse files
committed
Set USE_TZ explicitly to fix some failing tests
In Django's `main` branch, the default value of the `USE_TZ` setting was changed from `False` to `True` (see django/django@602d9a3), which caused the tests relying on timezone-naive `datetime` objects, to fail. Example of some of the failing tests: https://github.com/jazzband/django-simple-history/actions/runs/4108104757/jobs/7088397467.
1 parent eca46b1 commit 0fcc722

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def __getitem__(self, item):
135135
}
136136
],
137137
DEFAULT_AUTO_FIELD="django.db.models.AutoField",
138+
USE_TZ=False,
138139
)
139140
MIDDLEWARE = [
140141
"django.contrib.sessions.middleware.SessionMiddleware",

0 commit comments

Comments
 (0)