-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properly convert datetime from backend. Fix: #323, Fix: #330 #332
base: main
Are you sure you want to change the base?
Conversation
# Because of that if datetime is naive we should use it as source timezone | ||
# celery.utils.time.maybe_make_aware - always convert naive datetime to UTC | ||
# which may be wrong in Django sicase. | ||
django_timezone = getattr(settings, 'TIME_ZONE', None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will need a proper test case
for more information, see https://pre-commit.ci
a test is failing with this change. it would be great if you can fix the test |
@@ -4,6 +4,7 @@ | |||
import math | |||
from multiprocessing.util import Finalize | |||
|
|||
import pytz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Django v5 drops support for pytz
timezones.
Please rebase. |
#330