Odoo Help

1

How to display UTC time in instead of system time in Odoo form?

By
vadivel
on 10/25/16, 3:23 AM 978 views

Hi Friends,

I am using Odoo9. I need to display particular date time field's value as '2015-10-25 09:00:00', in databse it is stored as '2015-10-25 09:00:00',

while it is displayed in front end(odoo form level) as '2015-10-25 14:30:00'. Is anyone have idea on how to display same as database date time as UTC (If i have change UTC timezone as system it is working fine, I dont want to follow this idea) .Thanks in advance.

Did you try to change tz in the context?

Artem
on 10/30/16, 3:23 PM
-1
SREERAJ MDM
On 10/25/16, 4:10 AM

the time showed in the front end is total of  , (backend time + gmt)

in your question the backend time is 9:00 and front end time is 14:30

and your gmt is 5:30 so if you want to show the exact time as the backend you have to subtract the gmt from front end


Cant use timedelta for timezone issue.

vadivel
on 10/25/16, 5:49 AM

check my new answer

SREERAJ MDM
on 10/31/16, 5:55 AM

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.

Register

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)

Stats

Asked: 10/25/16, 3:23 AM
Seen: 978 times
Last updated: 10/31/16, 7:57 AM