django.utils.timezone.now should return local time when used with timezone.activate
|Reported by:||bach@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I think using django.utils.timezone.now should return a timezone aware datetime object when used in conjunction with timezone.activate
now = timezone.now()
now is a value that is UTC time instead of US/Pacific time. I understand that activate is used for rendering in templates but it's confusing when a user calls activate expecting that timezone to be activated and timezone.now doesn't obey that activation. If they aren't supposed to work together, I don't think they should belong in the same module.