Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3113 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 20
5318
8
thg 5 23
61370
DateTime Python Đã xử lý
4
thg 2 23
71738
0
thg 3 21
6706
3
thg 7 20
21083