1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

ticket #34699. reformatting code

This commit is contained in:
wesley 2024-10-09 18:43:40 -04:00
parent 87731a1129
commit 04243e2455

View File

@ -1969,7 +1969,7 @@ class DateFunctionWithTimeZoneTests(DateFunctionTests):
).filter(id=non_utc_model.id, start_trunc__lte=now)
self.assertNotEqual(models_qs.count(), 1)
adjusted_now = timezone.localtime(now).replace(
tzinfo=zoneinfo.ZoneInfo(key='UTC')
tzinfo=zoneinfo.ZoneInfo(key="UTC")
)
models_qs = DTModel.objects.annotate(
start_trunc=TruncSecond("start_datetime")