[6.1 trunk] server/client/web unsinchronised timezones

Bug #881343 reported by Bogdan Stanciu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Hello,

There are some annoying "features" in the latest code.
I use ubuntu 11.10, py 2.7, oerp latest (srv/gtk/web), pgres 9.1

I first noticed that the log is written with two hours delay.
$ date gives: mardi 25 octobre 2011, 12:02:05 (UTC+0200)
$ echo $TZ gives: Europe/Zurich
openerp user timezone Europe/ZUrich

the log shows after a login, while writing this:
 [2011-10-25 10:03:39,876][?] INFO:web-services:successful login from 'admin' using database 'bs_02'
two hours earlyer!!

i wrote some time data in a new database: there is a two hours difference between two fields which are supposed to be the same (in the particular case). please see file.

the create_date field is correct, showing the time of my actions.
the name field, while it is supposed to show the same, it has the two hours difference. BTW, my prod db, which has correct data in the name field, shows wrong times on screen (both cli and web).

If I change the timezone in the user config, everything looks just fine in the client, but not the log.

Is there any setting that I am missing? Or this is an unexpected behaviour?

Thank you,
Bogdan

Revision history for this message
Bogdan Stanciu (bstanciu) wrote :
Revision history for this message
Bogdan Stanciu (bstanciu) wrote :

I realise that the time coming through time.strftime() e.g. in the hr_timesheet module has also the UTC time, NOT the local time. See printscreen...

Revision history for this message
Bogdan Stanciu (bstanciu) wrote :

I would say that #918257 is a duplicate of this bug, which was filed 4 month ago, and it's still there... :-(

but I don't really care about statistics ;)

bogdan

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.