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

Hello everybody, I created a cron for assign a datetime field:

                fech = str(fecha_actual)+" 17:30:00"
                fech = datetime.strptime(fech, '%Y-%m-%d %H:%M:%S')


But when I go to Odoo in the UI I see 19:30:00 and not 17:30:00.


What could be the problem? Thank You so much!

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

it's because  server compute/store all the datetime field in UTC format and UI display it in your/browser timezone 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 20
5314
[Solved] Date/ Time in Odoo with python แก้ไขแล้ว
8
พ.ค. 23
61369
DateTime Python แก้ไขแล้ว
4
ก.พ. 23
71730
0
มี.ค. 21
6704
3
ก.ค. 20
21080