mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #17262 -- Refactored tzinfo implementations.
This commit deprecates django.utils.tzinfo in favor of the more recent django.utils.timezone which was introduced when Django gained support for time zones.
This commit is contained in:
@@ -6,11 +6,10 @@ import unittest
|
||||
from django.test.utils import override_settings
|
||||
from django.utils import six
|
||||
from django.utils import timezone
|
||||
from django.utils.tzinfo import FixedOffset
|
||||
|
||||
|
||||
EAT = FixedOffset(180) # Africa/Nairobi
|
||||
ICT = FixedOffset(420) # Asia/Bangkok
|
||||
EAT = timezone.get_fixed_timezone(180) # Africa/Nairobi
|
||||
ICT = timezone.get_fixed_timezone(420) # Asia/Bangkok
|
||||
|
||||
|
||||
class TimezoneTests(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user