Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4560 มุมมอง

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')"/>

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 16
8865
Take Users Timezone แก้ไขแล้ว
3
ก.ค. 25
3872
3
ก.ค. 25
3183
1
ม.ค. 24
1446
Time & Date Issue แก้ไขแล้ว
6
ก.ย. 19
11159