Hello! In django 1.4 with USE_TZ=true timezone.now() returns datetime.utcnow().replace(tzinfo=utc). Such datetime aware objects are handled properly in forms, templates and other places inside django framework. But when I prepare datetimes for ajax responses using strftime I always do localtime(timezone.now()). Same conversion I should do for any requests to external APIs which don't know about timezones.
I couldn't find any discussions and arguments what timezone.now() should return. May be it will be more practical/comfortable for django users if timezone.now() will return localetime? What do you think about this? -- 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/-/6w6WPwXo88IJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
