Current timezone for this app. This is a cached property taking the time zone from the :setting:`timezone` setting.
(self)
| 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 | |
| 1547 | App = Celery # XXX compat |
nothing calls this directly
no test coverage detected