MCPcopy
hub / github.com/celery/celery / utcoffset

Method utcoffset

t/unit/utils/test_time.py:266–267  ·  view source on GitHub ↗
(self, dt)

Source from the content-addressed store, hash-verified

264 class tzz(tzinfo):
265
266 def utcoffset(self, dt):
267 return None # Mock no utcoffset specified
268
269 tz = tzz()
270 assert localize(make_aware(datetime.now(_timezone.utc), tz), tz)

Calls

no outgoing calls

Tested by

no test coverage detected