[1.5.x] Fixed timezone tests when dict randomization is on
[1.5.x] Fixed timezone tests when dict randomization is on

Refs #17758.

Backport of 1d6b7f3 from master.

alx-eu/django,hasadna/django,ccn-2m/django,imtapps/django-imt-fork,alx-eu/django,ccn-2m/django,alx-eu/django,imtapps/django-imt-fork,bliti/django-nonrel-1.5,ccn-2m/django,bliti/django-nonrel-1.5,hasadna/django,imtapps/django-imt-fork,ccn-2m/django,hasadna/django,bliti/django-nonrel-1.5,alx-eu/django