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

fix for my issue: django 1.4 USE_TZ compat #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix for my issue: django 1.4 USE_TZ compat #6

wants to merge 1 commit into from

Conversation

dwheaton
Copy link

works for me

from django.utils.timezone import now # pre Django 1.4
except ImportError:
from datetime import datetime # Django 1.4
now = datetime.now

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is good, but the comment is wrong.

from django.utils.timezone import now

This only works with Django 1.4+

@philomat it would be good if an updated release was available which worked with Django 1.4 directly

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.

2 participants