Skip to content
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

Scoping issue in timezones/fields.py/prep_localized_datetime() #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dgoldenichec
Copy link

I think I filed this before, but it may have got lost when github totally reworked their pull request subsystem. Anyway, it looks to me like the issue is still present in your latest code at time of writing.

You've got a scoping issue in prep_localized_datetime, just the way python scoping works. Without a fix, means you potentially get weird behaviour, particularly if you have multiple LocalizedDateTimeFields on the one model. Anyway, attached is one possible suggestion to fix the issue.

N.B. I'm leaving django-land very shortly (end of contract), found this going through some old tickets prior to leaving, so I personally may not be contactable regarding this issue after this thursday (31st March 2011) (bound to be someone at ichec.ie available, just not dgoldenichec...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant