modocache / django-generate-scaffold

Generate a Django model, views, URLconf, and templates using a single command.
139 stars 39 forks source link

timezone warnings, when use_tz = True #2

Open mariodev opened 12 years ago

mariodev commented 12 years ago

When I display single item in archive index, I get a RuntimeWarning:

DateTimeField received a naive datetime (2009-11-30 00:00:00) while time zone support is active. Because of that, the datetime values in "Month Archive" are displayed incorrectly.

USE_TZ = False

fixed the problem, but I guess it's not good If I want to use timezones..

modocache commented 12 years ago

Sorry it took me so long to get back to you on this. I began work on the problem, but I'm afraid the solution may be outside the scope of this project. See:

Pull requests are of course welcome.

modocache commented 12 years ago

https://github.com/modocache/django-generate-scaffold/pull/12 has some work on this issue.