-
Notifications
You must be signed in to change notification settings - Fork 409
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
ValueError: astimezone() cannot be applied to a naive datetime #107
Comments
In our case, we're setting the field via |
Good spot. I think if you have If you are (or anyone else is) interested in writing a pull request that would be appreciated. Otherwise I will fix this myself at some point. |
Closed in #144 |
Hello, it appears that the fix applied to resolve #82 is triggering an error in our environment. I've included a partial stack trace below.
Django 1.8 is configured with the following timezone settings:
Partial stack trace:
Our model definition:
In this case, it looks like our timestamp is already naive? I haven't yet checked out the code, but I suspect the quick fix is first checking to see if the value is already naive. I will keep this issue updated if I discover anything else.
The text was updated successfully, but these errors were encountered: