Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3097 Widoki

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!

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sty 20
5312
8
maj 23
61368
DateTime Python Rozwiązane
4
lut 23
71730
0
mar 21
6704
3
lip 20
21079