Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4562 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
8865
3
jul. 25
3873
3
jul. 25
3188
1
jan. 24
1447
6
set. 19
11163