Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4561 Vues

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
Ignorer
Meilleure réponse

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
Ignorer

For Example:

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

Publications associées Réponses Vues Activité
1
oct. 16
8865
3
juil. 25
3873
3
juil. 25
3188
1
janv. 24
1447
6
sept. 19
11163