Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4703 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar

For Example:

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

Publicações relacionadas Respostas Visualizações Atividade
1
out. 16
9014
3
jul. 25
4127
3
jul. 25
3527
1
jan. 24
1588
6
set. 19
11429