تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3101 أدوات العرض

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 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يناير 20
5313
8
مايو 23
61369
DateTime Python تم الحل
4
فبراير 23
71730
0
مارس 21
6704
3
يوليو 20
21080