Hi all,

I have a number of questions on Django 1.4's Time Zones.

1] Migration of non-UTC to UTC: is there any script / best practice 
available?
Django's documentation mentions that all data should be converted to UTC 
when switching to USE_TZ=True. See: 
https://docs.djangoproject.com/en/dev/topics/i18n/timezones/#other-databases
This is a rather concise remark. Are there any scripts/tricks available to 
do this in "one go", and to be able to easily do the same conversion in 
development and production.

As asked here:
http://stackoverflow.com/questions/10994101/django-1-4-use-tz-migration-database-part-best-practices

2] The meaning of Queryset filtering: am I correct to understand that 
operations on the DB are now always interpreted in UTC?
I.e. any direct comparisons to datetime? But also the __month __year 
quasi-fields?
This does not appear to be documented explicitly anywhere, at least not in 
the queryset documentation itself.
And should we not consider this a bug since a naive use of these is 
explained in almost every single Django beginners toturial?

3] Since date and datetime are radically different concepts (respectively a 
point in time and a calendaring concept) what is the meaning of
auto_now and auto_now_add on a DateField? Is the current Timezone or the 
default Timezone used? Should this not be documented?

Ciao!
Klaas

-- 
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/-/En6oKxxs5FoJ.
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