Odoo Help


Time mismatch in odoo Server(Ubuntu)?

on 9/16/15, 1:20 AM 2,059 views


I am Using Ubuntu 14.04. My user Time zone is Asia / Calcutta.

but,when I show Log file it show Different Time.

let's take an Example:

my current Time is 2015-09-16 10:45:30

log file shows  2015-09-16 05:15:44.

How Can I set Server Time(Log File Time) as My Current Time.


Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 9/16/15, 2:03 AM

It's ok for being different, your logs are in UTC, since you have your user with Asia/Calcutta timezone, it can be other users in others timezones in the same database, so the question is: In what specific user time zone the logs should be displayed? It's better in UTC.

Read more here:


if timezone different.it's Created Problem in Schedule or Automation or Server Action?

on 9/16/15, 4:56 AM

No. I don't thing so

Axel Mendoza
on 9/16/15, 5:02 AM
David Peralta
On 4/23/18, 11:36 AM

In Odoo 10.0


    def my_function(self):

        local_tz = pytz.timezone(self.env.user.tz or 'UTC')

        # We obtain the local date

        # My current time is self.date

        # Local zone is local_date

         local_date = fields.Datetime.from_string(self.date).replace(tzinfo=pytz.utc).astimezone(local_tz)

Ernesto Domínguez
On 8/11/16, 3:30 PM

Hi, I have currently the same problem with Odoo 9.

My server time is Central Time but the log timestamps are 5 hours later.  For example:

ubuntu@FLV-UBU-ODOO-01:/var/log/odoo$ date

Thu Aug 11 14:29:33 CDT 2016

ubuntu@FLV-UBU-ODOO-01:/var/log/odoo$ tail odoo9C-server.log

2016-08-11 19:28:51,415 936 INFO OC09_VAZDELAR_TST werkzeug: - - [11/Aug/2016 19:28:51] "POST /web/dataset/call_kw/stock.location/name_get HTTP/1.1" 200 -

2016-08-11 19:28:51,424 936 INFO OC09_VAZDELAR_TST werkzeug: - - [11/Aug/2016 19:28:51] "POST /web/dataset/call_kw/account.tax/fields_get HTTP/1.1" 200 -

Where is Odoo server getting the time from?

I don´t think that could be acceptable.

Help is much appreciated.


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

2 follower(s)


Asked: 9/16/15, 1:20 AM
Seen: 2059 times
Last updated: 4/23/18, 11:36 AM