Skip to Content
Menu
This question has been flagged
1 Atsakyti
4719 Rodiniai

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?

Portretas
Atmesti
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

Portretas
Atmesti

For Example:

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

Related Posts Replies Rodiniai Veikla
1
spal. 16
9030
3
liep. 25
4137
3
liep. 25
3539
1
saus. 24
1599
6
rugs. 19
11446