jiaaro / django-badges

An easy to use django app that provides Foursquare/Stack Overflow style badges
GNU General Public License v3.0
44 stars 21 forks source link

Use django's timezone aware now for date fields #1

Open alastair opened 10 years ago

alastair commented 10 years ago

Running django with time zone support results in these warnings:

RuntimeWarning: DateTimeField BadgeToUser.created received a naive datetime (2014-08-01 10:22:33.643602) while time zone support is active.

This is easily fixed by using django's timezone aware now from the django.utils.timezone package.

jiaaro commented 9 years ago

The changes seem reasonable (also, sorry for the huuuge delay in responding) - I'm concerned about how this will affect people already using the app.