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?
This question has been flagged
1
Respondre
6770
Vistes
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')"/>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
|
1
d’oct. 16
|
10927 | ||
|
Take Users Timezone
Solved
|
|
3
de març 26
|
7369 | |
|
|
3
de jul. 25
|
6805 | ||
|
|
1
de des. 23
|
3327 | ||
|
Time & Date Issue
Solved
|
|
6
de set. 19
|
14432 |