Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3232 Vistas

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
Descartar
Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 20
5539
8
may 23
61984
4
feb 23
72286
0
mar 21
7052
3
jul 20
21524