Odoo Help

5
3 Answers
9
Vince Vinet
4/23/15, 3:52 PM

I have just created a module which allows you do to:

<span t-usertime="%Y-%m-%d %H-%M-%S" /> 

and get the correct timezone. See it on GitHub 

1 Comment
Savoir-Faire Linux, Vince Vinet
5/11/15, 10:06 AM

This has now been accepted in the OCA addons. Updated the github link.

8
陈帆
3/8/17, 10:18 PM
<span t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d %H:%M')"/>   
1 Comment
Andre de Kock
8/25/17, 7:48 AM

This should be the correct answer

Ask a Question
Writer
Tags
Keep Informed
5 follower(s)
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