Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4550 Переглядів

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?

Аватар
Відмінити
Найкраща відповідь

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')"/>

Related Posts Відповіді Переглядів Дія
1
жовт. 16
8863
Take Users Timezone Вирішено
3
лип. 25
3858
3
лип. 25
3177
1
січ. 24
1445
Time & Date Issue Вирішено
6
вер. 19
11152