Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7098 มุมมอง

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
4529
3
ส.ค. 20
9996
3
มิ.ย. 25
1040
0
เม.ย. 24
1931
4
พ.ย. 23
6030