codekoala/django-tracking — pull request #8 by jspiros (2012-09-19 06:14:13+00:00)
Title: Support for Django 1.4+ time-zone-aware datetimes.

When using tracking with Django 1.4+ with USE_TZ set to True, comparisons are attempted between time-zone-aware and time-zone-naive datetimes due to tracking's use of datetime.now(), which raises an exception. My updates use django.utils.timezone.now() when available (when running Django 1.4+), falling back to the old method otherwise. So, this shouldn't break any sites already using tracking, and adds support for sites using Django 1.4+ with time-zone-aware datetimes.