You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to #80 we facing the same error. We're just consumer using the api to receive data for our DWH. Currently one of our job fails because of this error.
Is it possible to implement a fix for this problem on pyodata side?
Well, we can for sure add a workaround (a global variable or something like that) which would cause that any value lower than -62135769600000 would be resolved as 1970-01-01T00:00:00. We haven't added it yet as one of the goals of PyOdata is to test OData service implementation and the value in your case is clearly wrong.
Activity
filak-sap commentedon Feb 8, 2021
Well, we can for sure add a workaround (a global variable or something like that) which would cause that any value lower than -62135769600000 would be resolved as 1970-01-01T00:00:00. We haven't added it yet as one of the goals of PyOdata is to test OData service implementation and the value in your case is clearly wrong.
Feel free to open a PR. I would create a global variable in https://github.com/SAP/python-pyodata/blob/master/pyodata/v2/model.py which would enable a new test in at
python-pyodata/pyodata/v2/model.py
Line 416 in 6a4eb3b
or something like that - it needs to be clearly documented and the error meessage at
python-pyodata/pyodata/v2/model.py
Line 418 in 6a4eb3b
Please, add also test case.
SAP#143 Workaround for screwed up date values
Workaround for screwed up date values (#149)