Anssi, Aymeric thanks!
I enabled USE_TZ only 3 days ago and missed that any datetime returned by 
the database is expressed with tzinfo = UTC. Until that moment I though 
that function localtimezone.now() that will return 
localtime(timezone.now()) solves most of my problems. Now I want to turn 
off USE_TZ :) Joking apart but seems as a lot of systems expect datetime 
naive. Also I have a lot of ajax responses. Thus I should converts a lot of 
manually, which increases the possibility of error. Maybe this is just my 
experience.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/SuWCI-IEX5kJ.
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.

Reply via email to