Odoo Help


Time saving in UTC in postgresql database

on 1/21/15, 2:47 AM 1,606 views


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.




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

on 1/21/15, 5:02 AM



| 5 3 6
Jakarta, Indonesia
On 1/21/15, 3:08 AM

@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.

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

Ray Carnes
on 1/21/15, 9:31 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 1/21/15, 2:47 AM
Seen: 1606 times
Last updated: 3/16/15, 8:10 AM