Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5189 Prikazi

Hi,'

I am running an Openerp application in Ubuntu server with the timezone as 'Asia/Kolkata'. In my openerp application, the timezone is set as 'Asia/Kolkata' in the preferences. But at the time of saving the records, in DB it is saving in the timezone 'UTC'. I need to save the datetime in 'Asia/Kolkata' for all the records. How can I change the settings such that I can save the time in 'Asia/Kolkata' in the DB. Please help me with a solution. You can contact me on scot77844@gmail.com

 

Thank You All.

 

Regards,

Scot.

Avatar
Opusti

I am looking for the same ...any idea?

Best Answer

@Scot, AFAIK, times are saved in UTC so that OpenERP can support multiple Timezone within a single database.  As such all the code related to datetime (at server's level and web UI level) has been build with that assumption in mind.  If you need to get the value in different timezone from the database, I believe it is for easier to calculate it from the field's value rather than getting OpenERP to manage (storing is just only part of it) the time value in non-UTC timezone.

Avatar
Opusti

This is correct. It was decided to store all times as UTC.