On 20 févr. 2012, at 19:52, Yo-Yo Ma wrote: > On a related note, the new timezone.now() functionality is used for > ``DateTimeField.pre_save`` when ``auto_now=True``, but it isn't used > for ``DateField.pre_save`` or ``TimeField.pre_save``. Is this a bug I > should report, or is there something I'm missing (I'm pretty > uninformed when it comes to UTC and timezone related stuff in Python)?
Hello, This is by design. Timezones don't make sense for date or times, only for datetimes. See also https://docs.djangoproject.com/en/dev/topics/i18n/timezones/#naive-and-aware-datetime-objects Best regards, -- Aymeric. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.