codekoala/django-axes — pull request #15 by benkonrath (2012-07-03 09:39:22+00:00)
Title: Use django timezone.now() to get current time.

Here's an updated patch to use timezone.now() from Django 1.4. This method takes care of checking the settings for USE_TZ:

https://docs.djangoproject.com/en/dev/ref/utils/#django.utils.timezone.now

Sorry about the problem with Django < 1.4 in my last pull request. I've tested this with 1.4 and 1.3.1. Comments are welcome.

Thanks, Ben