mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 03:58:12 +08:00
Fix: Daylight saving time issue with scheduler (#47)
This commit is contained in:
@@ -211,6 +211,11 @@ class Conf:
|
||||
# to manage workarounds during testing
|
||||
TESTING = conf.get("testing", False)
|
||||
|
||||
# Timezone for next_run, overrules Django timezone
|
||||
TIME_ZONE = None
|
||||
if settings.USE_TZ:
|
||||
TIME_ZONE = conf.get("time_zone", settings.TIME_ZONE)
|
||||
|
||||
|
||||
# logger
|
||||
logger = logging.getLogger("django-q")
|
||||
|
||||
Reference in New Issue
Block a user