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

Hi,

I have a bug in DateTime:

- In browser I see 2018-10-18 AM

- And when I do 'record.my_date_field' I get '2018-10-17 PM', I find that he minus one hour, but sometimes more than 1 hours.

Thanks

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

This is not a bug, Odoo stores datetime in database in utc format. Later on view it is converted with user timezones.

so if you need to do operations on that fields, you have to convert and use accordingly.

See my question here

https://www.odoo.com/forum/help-1/question/time-zone-problem-in-odoo-118905

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

Odoo server is running with UTC time and this will be converted to the user time zone.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
From Datetime to Date Вирішено
1
серп. 15
4484
3
серп. 20
9943
3
черв. 25
968
0
квіт. 24
1850
4
лист. 23
5936