MCPcopy
hub / github.com/django/django / item_pubdate

Method item_pubdate

tests/syndication_tests/feeds.py:260–264  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

258 """
259
260 def item_pubdate(self, item):
261 # Provide a weird offset so that the test can know it's getting this
262 # specific offset and not accidentally getting on from
263 # settings.TIME_ZONE.
264 return item.published.replace(tzinfo=get_fixed_timezone(42))
265
266
267class TestFeedUrlFeed(TestAtomFeed):

Callers

nothing calls this directly

Calls 1

get_fixed_timezoneFunction · 0.90

Tested by

no test coverage detected