TIME_ZONE setting inadequate behaviour
|Reported by:||bakaras@…||Owned by:||adrian|
|Component:||Database layer (models, ORM)||Version:||0.95|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have a model with a 'datetime' field and its auto_now_add argument set on. In settings.py of my project I have TIME_ZONE = 'Europe/Moscow'. So, when I create a new object of that model the value of that datetime field is 3 ours decreased.
For example, if now is '30 aug 2006 14:00:00' and I executed test1=My_Model(), then after executing test1.save() result of query:
set time zone 'Europe/Moscow'; select my_datetime_field from my_project_my_model;
will return '30 aug 2006 11:00:00'
P.S. I use Postgres 8.1 as DBMS.
P.P.S. Sorry for my English.