Skip to Content
Menú
This question has been flagged
1 Respondre
4582 Vistes

I have a Datetime field in Sale order, when i print sale report it shows me that field in UTC time, how can i convert it to users timezone?

Avatar
Descartar
Best Answer

Hello Darth Vader,

You can get the date and time according to the user's timezone by using context_timestamp on report field.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Descartar

For Example:

<p class="m-0" t-esc="context_timestamp(doc.confirmation_date).strftime('%m/%d/%Y, %H:%M:%S')"/>

Related Posts Respostes Vistes Activitat
1
d’oct. 16
8895
3
de jul. 25
3908
3
de jul. 25
3213
1
de gen. 24
1461
6
de set. 19
11181