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?
Bu soru işaretlendi
1
Cevapla
6783
Görünümler
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')"/>
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
1
Eki 16
|
10937 | ||
|
Take Users Timezone
Çözüldü
|
|
3
Mar 26
|
7382 | |
|
|
3
Tem 25
|
6818 | ||
|
|
1
Ara 23
|
3334 | ||
|
Time & Date Issue
Çözüldü
|
|
6
Eyl 19
|
14447 |