← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 461909] Re: Server use local time instead of UTC/GMT for ORM records.

 

Closing this bug as it is out of scope for v6, housekeeping. Added it to
prospective product backlog for considering it post-v6 though. Thanks
for reporting!

** Changed in: openobject-server
   Importance: Undecided => Wishlist

** Changed in: openobject-server
       Status: New => Won't Fix

-- 
Server use local time instead of UTC/GMT for ORM records.
https://bugs.launchpad.net/bugs/461909
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Won't Fix

Bug description:
I think this is a big issue, that prevent Open ERP to become big.

When a record is created, or updated in the database, the ORM set 'create time' or 'update time' to the local current time.

UTC/GMT should be used instead for two reasons:
- When your time change for daylight saving time, you are going to have record with a time prior to another that was created before.
- When you try to sync your database with another one that isn't in the same country (or planet.. have a look in the future), you are going to have a problem too.

One quick solution is to use:
'timestamp with time zone' instead of 'timestamp without time zone'

The PostgreSQL NOW() function already support that.
Prior to PostgreSQL 7.3, writing just timestamp was equivalent to timestamp with time zone. This was changed for SQL compliance. Source: http://www.postgresql.org/docs/8.4/interactive/datatype-datetime.html







Follow ups