跳至內容
選單
此問題已被標幟
2 回覆
4148 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 24
2756
1
6月 24
5207
1
10月 23
10938
1
10月 23
98
1
8月 23
2194