On Tue, Feb 21, 2012 at 13:17, Yo-Yo Ma <baxterstock...@gmail.com> wrote: > I haven't quite read up on all the UTC-related stuff in Django as of > yet (couldn't find much info about it), but I found some of the posts > above concerning. It would seem that if a DateTimeField should be > updated with ``timezone.now()``, then a DateField should be updated > with ``timezone.now().today()``, and TimeField should be updated with > ``timezone.now().time()``, no? If I'm in EST time, and the server is > in MST, and it's 11:00PM on the server, my records should be updated > as the following day, since it's 1:00AM EST. Is this naive to assume > (if not, apologies for my lack of know-how regarding TZ issues)?
There's a logic to either way, but I agree that auto_now for a date should use the user's timezone to determine "today", not the server's. It would be very weird for me to add a model instance and be told that I did that "tomorrow". Cheers, Danny > > -- > 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. > -- Kind regards, Danny W. Adair Director Unfold Limited New Zealand Talk: +64 - 9 - 9555 101 Fax: +64 - 9 - 9555 111 Write: danny.ad...@unfold.co.nz Browse: www.unfold.co.nz Visit/Post: 253 Paihia Road, RD 2, Kawakawa 0282, New Zealand "We are what we repeatedly do. Excellence, then, is not an act but a habit." ============================== Caution The contents of this email and any attachments contain information which is CONFIDENTIAL to the recipient. If you are not the intended recipient, you must not read, use, distribute, copy or retain this email or its attachments. If you have received this email in error, please notify us immediately by return email or collect telephone call and delete this email. Thank you. We do not accept any responsibility for any changes made to this email or any attachment after transmission from us. ============================== -- 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.