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

Hi Friends,

I am using Odoo9. I need to display particular date time field's value as '2015-10-25 09:00:00', in databse it is stored as '2015-10-25 09:00:00',

while it is displayed in front end(odoo form level) as '2015-10-25 14:30:00'. Is anyone have idea on how to display same as database date time as UTC (If i have change UTC timezone as system it is working fine, I dont want to follow this idea) .Thanks in advance.

อวตาร
ละทิ้ง

Did you try to change tz in the context?

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

the time showed in the front end is total of  , (backend time + gmt)

in your question the backend time is 9:00 and front end time is 14:30

and your gmt is 5:30 so if you want to show the exact time as the backend you have to subtract the gmt from front end


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

Cant use timedelta for timezone issue.

check my new answer

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 22
4572
Take Users Timezone แก้ไขแล้ว
3
ก.ค. 25
3884
3
ก.ค. 25
3198
1
ม.ค. 24
1454
Time & Date Issue แก้ไขแล้ว
6
ก.ย. 19
11176