Hi,
I have a bug in DateTime:
- In browser I see 2018-10-18 AM
- And when I do 'record.my_date_field' I get '2018-10-17 PM', I find that he minus one hour, but sometimes more than 1 hours.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I have a bug in DateTime:
- In browser I see 2018-10-18 AM
- And when I do 'record.my_date_field' I get '2018-10-17 PM', I find that he minus one hour, but sometimes more than 1 hours.
Thanks
This is not a bug, Odoo stores datetime in database in utc format. Later on view it is converted with user timezones.
so if you need to do operations on that fields, you have to convert and use accordingly.
See my question here
https://www.odoo.com/forum/help-1/question/time-zone-problem-in-odoo-118905
Odoo server is running with UTC time and this will be converted to the user time zone.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
From Datetime to Date
Đã xử lý
|
|
1
thg 8 15
|
4491 | |
|
3
thg 8 20
|
9958 | ||
|
3
thg 6 25
|
973 | ||
|
0
thg 4 24
|
1858 | ||
|
4
thg 11 23
|
5951 |