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?
Cette question a été signalée
1
Répondre
6771
Vues
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')"/>
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
oct. 16
|
10927 | ||
|
Take Users Timezone
Résolu
|
|
3
mars 26
|
7369 | |
|
|
3
juil. 25
|
6805 | ||
|
|
1
déc. 23
|
3327 | ||
|
Time & Date Issue
Résolu
|
|
6
sept. 19
|
14432 |