django-generate-scaffold
django-generate-scaffold copied to clipboard
timezone warnings, when use_tz = True
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..
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:
- https://code.djangoproject.com/ticket/18217
- https://code.djangoproject.com/ticket/17260
Pull requests are of course welcome.
https://github.com/modocache/django-generate-scaffold/pull/12 has some work on this issue.