tangentlabs/django-oscar — pull request #288 by elbaschid (2012-09-05 01:43:27+00:00)
Title: makes Oscar work with aware AND naive datetimes based on USE_TZ

* replaces all occurences of ``datetime.now()`` with
``django.utils.timezone.now()`` which returns aware or naive
datetimes based on ``USE_TZ``
* increases ``South`` version to 0.7.6 in dependencies to make
aware datetimes work in migrations.
* Oscar's sandbox is now configured to use aware timezones by
default

*Note:* I changed the excplicit default dates in migrations to ``datetime.datetime.now`` as this is the way south handles the data migrations AFAIK. Internally, it converts all dates to naive dates before handling them and handles timezones on its own. Using ``datetime.datetime.now`` should prevent unexpected problems with mixing naive and aware datetimes.