django-generate-scaffold icon indicating copy to clipboard operation
django-generate-scaffold copied to clipboard

timezone warnings, when use_tz = True

Open mariodev opened this issue 12 years ago • 2 comments

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..

mariodev avatar May 22 '12 09:05 mariodev

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.

modocache avatar Aug 12 '12 23:08 modocache

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

modocache avatar Aug 13 '12 00:08 modocache