تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
7020 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 15
4443
3
أغسطس 20
9917
3
يونيو 25
935
0
أبريل 24
1840
4
نوفمبر 23
5889