It's well-documented. Check out the Django documentation page on time zones:

https://docs.djangoproject.com/en/1.4/topics/i18n/timezones/

When time zone support is enabled, Django uses time-zone-aware datetime 
objects. If your code creates datetime objects, they should be aware too. 
In this mode, the example above becomes:

import datetimefrom django.utils.timezone import utc
now = datetime.datetime.utcnow().replace(tzinfo=utc)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/4xE8PRHE-BwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to