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

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

By
vadivel
on 10/25/16, 3:23 AM 295 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

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

2 follower(s)

Stats

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