KbiR
KbiR

Reputation: 4174

Time mismatch in odoo

I have set time zone as 'Asia/Calcutta' in administrator preferences. And create a message in Whole company group, then the time shows like 'less than a minute ago'. But in my website page it shows '6 hours ago'. How can i change it?.

enter image description here

Website

enter image description here

OR

How can i convert UTC time to local time in qweb?

Upvotes: 0

Views: 533

Answers (1)

Ravi Bhateliya
Ravi Bhateliya

Reputation: 275

refer this link.Your problem will solve.

https://www.odoo.com/forum/help-1/question/how-to-get-users-timezone-for-python-30906

and still, for the more R & D, you can go to

https://docs.python.org/2/library/time.html this link.

Upvotes: 0

Related Questions