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

Hey Mates,

Anyone has any idea how odoo calculate the time values for different time zones. is it used browser time zone to display time or timezone setting values on user profile?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Date time is stored in UTC in the database and it is converted into users timezone based on the timezone set in user profile,see : Why Datetime is Different In Database and in User Interface Odoo

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Yep. but I want's to know it will differ based on browser timezone also. think user live in India and his timezone setting not setting to any timezone setting. so whats happen then.

คำตอบที่ดีที่สุด

Hi Rishan,

 I think,  you can store user time on database ( odoo will convert this time to UTC time zone before store it on DB ) after that, you can compare these times on and show it with user time zone.

pls try and feedback if ok.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 24
2859
1
มิ.ย. 24
5306
1
ต.ค. 23
11047
1
ต.ค. 23
98
413 Request Entity Too Large แก้ไขแล้ว
1
ส.ค. 23
2194