psycopg2.errors.DatetimeFieldOverflow: date/time field value out of range: "32-12-01" LINE 5: date >= '32-12-01' and ^ HINT: Perhaps you need a different "datestyle" setting.
i see this when i try chenerating report, anyone can solve
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
psycopg2.errors.DatetimeFieldOverflow: date/time field value out of range: "32-12-01" LINE 5: date >= '32-12-01' and ^ HINT: Perhaps you need a different "datestyle" setting.
i see this when i try chenerating report, anyone can solve
Hi,
In the shown value of the data, there is a 32, which i believe representing the day and we dont have a month with 32 days. So you have to check and see how you get this value and from the 32 is inputted and adjust the logic to be the day between 0 and 31.
Thanks
Hi
Try using the query,
SET datestyle = dmy;please refer this:https://stackoverflow.com/posts/29383758/edit
Hope it helps
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 | |
---|---|---|---|---|
|
1
thg 2 22
|
4050 | ||
|
3
thg 7 25
|
8462 | ||
|
1
thg 6 25
|
1682 | ||
|
3
thg 7 25
|
3307 | ||
|
1
thg 5 25
|
1448 |