Skip to Content
मेन्यू
This question has been flagged
1 Reply
4581 Views

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

For Example:

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

Related Posts Replies Views Activity
1
अक्तू॰ 16
8895
3
जुल॰ 25
3908
3
जुल॰ 25
3213
1
जन॰ 24
1461
6
सित॰ 19
11181