Reputation: 4174
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?.
Website
OR
How can i convert UTC time to local time in qweb?
Upvotes: 0
Views: 533
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