Skip to Content
Menu
This question has been flagged
1 Reply
3422 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
Oct 16
7894
3
May 24
1036
1
Jan 24
618
1
Jan 23
1974
6
Sep 19
9026