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?
Se marcó esta pregunta
1
Responder
6790
Vistas
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')"/>
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
1
oct 16
|
10943 | ||
|
Take Users Timezone
Resuelto
|
|
3
mar 26
|
7400 | |
|
|
3
jul 25
|
6831 | ||
|
|
1
dic 23
|
3355 | ||
|
Time & Date Issue
Resuelto
|
|
6
sept 19
|
14457 |