dzxs / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Django 1.4 timezone support #171

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Creating a new instance of the Photo model
2.
3.

What is the expected output? What do you see instead?
I see runtime warnings:
lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: 
RuntimeWarning: DateTimeField received a naive datetime (2012-08-01 
16:11:14.117535) while time zone support is active.

It could be from the usage of datetime.datetime.now in the library in place of 
timezone sensitive methods like django.utils.timezone.now

Supposedly this will deal with DST better. But I haven't tested that.

What version of the product are you using? On what operating system?
version 2.3 on linux

Please provide any additional information below.

Original issue reported on code.google.com by chhabra....@gmail.com on 1 Aug 2012 at 10:26

GoogleCodeExporter commented 9 years ago
See issue 13 on Github. https://github.com/jdriscoll/django-photologue/issues/13

Original comment by richardb...@gmail.com on 12 Aug 2012 at 10:37