İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3105 Görünümler

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!

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Oca 20
5316
8
May 23
61369
DateTime Python Çözüldü
4
Şub 23
71734
0
Mar 21
6704
3
Tem 20
21082