跳至内容
菜单
此问题已终结
1 回复
4621 查看

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?

形象
丢弃
最佳答案

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

形象
丢弃

For Example:

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

相关帖文 回复 查看 活动
1
10月 16
8929
3
7月 25
3988
3
7月 25
3304
1
1月 24
1501
6
9月 19
11277