Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4576 Tampilan

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
Buang
Jawaban Terbai

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
Buang

For Example:

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

Post Terkait Replies Tampilan Aktivitas
1
Okt 16
8888
3
Jul 25
3900
3
Jul 25
3203
1
Jan 24
1457
Time & Date Issue Diselesaikan
6
Sep 19
11177