Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
6971 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 15
4417
3
aug. 20
9867
3
iun. 25
891
0
apr. 24
1827
4
nov. 23
5870