summaryrefslogtreecommitdiff
path: root/tests/syndication/feeds.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/syndication/feeds.py')
-rw-r--r--tests/syndication/feeds.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/syndication/feeds.py b/tests/syndication/feeds.py
index f8ffb4b2e6..2097cb62ad 100644
--- a/tests/syndication/feeds.py
+++ b/tests/syndication/feeds.py
@@ -2,7 +2,8 @@ from __future__ import unicode_literals
from django.contrib.syndication import views
from django.core.exceptions import ObjectDoesNotExist
-from django.utils import feedgenerator, tzinfo
+from django.utils import feedgenerator
+from django.utils.timezone import get_fixed_timezone
from .models import Article, Entry
@@ -140,7 +141,7 @@ class TZAwareDatesFeed(TestAtomFeed):
# Provide a weird offset so that the test can know it's getting this
# specific offset and not accidentally getting on from
# settings.TIME_ZONE.
- return item.published.replace(tzinfo=tzinfo.FixedOffset(42))
+ return item.published.replace(tzinfo=get_fixed_timezone(42))
class TestFeedUrlFeed(TestAtomFeed):