Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4571 Prikazi

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
Opusti
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
Opusti

For Example:

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

Related Posts Odgovori Prikazi Aktivnost
1
okt. 16
8879
3
jul. 25
3883
3
jul. 25
3197
1
jan. 24
1454
6
sep. 19
11175