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?
Această întrebare a fost marcată
1
Răspunde
6798
Vizualizări
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')"/>
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
1
oct. 16
|
10952 | ||
|
Take Users Timezone
Rezolvat
|
|
3
mar. 26
|
7428 | |
|
|
3
iul. 25
|
6842 | ||
|
|
1
dec. 23
|
3372 | ||
|
Time & Date Issue
Rezolvat
|
|
6
sept. 19
|
14479 |