Odoo Help

Welcome!

This community 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.

1

Time saving in UTC in postgresql database

By
scot77844
on 1/21/15, 2:47 AM 920 views

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.

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

Odoo
on 1/21/15, 5:02 AM
1

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
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.

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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