MCPcopy
hub / github.com/celery/celery / timezone

Method timezone

celery/app/base.py:1532–1544  ·  view source on GitHub ↗

Current timezone for this app. This is a cached property taking the time zone from the :setting:`timezone` setting.

(self)

Source from the content-addressed store, hash-verified

1530
1531 @cached_property
1532 def timezone(self):
1533 """Current timezone for this app.
1534
1535 This is a cached property taking the time zone from the
1536 :setting:`timezone` setting.
1537 """
1538 conf = self.conf
1539 if not conf.timezone:
1540 if conf.enable_utc:
1541 return timezone.utc
1542 else:
1543 return timezone.local
1544 return timezone.get_timezone(conf.timezone)
1545
1546
1547App = Celery # XXX compat

Callers

nothing calls this directly

Calls 1

get_timezoneMethod · 0.80

Tested by

no test coverage detected