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

I have a datetime field in my openerp. I'm inserting values through web service into the postgresql database.

Datetime values in the database is correct, but in the openerp interface it shows different.

How can i solve the issue? I tried my ways, but no use.


 

อวตาร
ละทิ้ง

Not a bug... Dates in postgre are in UTC, and date in Web interface are in timezone of the current user...

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

That is a intended behavior. Datetime stored in postgres will be in UTC format and datetime shown in web interface will be based on current logged in user browser's timezone. By this way that the datetime will stays consistent in db for all user's. You can change the user timezone to UTC in order get the same result.

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

Any another solution to display the same value datetime saved in postgresql database.

ผู้เขียน

I set time zone to UTC but no change. The value in database & interface are different