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
Describe the bug
When retrieving a list of employees, we noticed some of them coming back with the incorrect date of birth, more specifically when their date of birth was prior to 1970.
To Reproduce
Steps to reproduce the behavior:
Use "DateOfBirth": "/Date(-310867200000+0000)/", when calling Employee::getDateOfBirthAsDate.
This will return 1979, but it should actually return 1960.
I tried updating to the latest version of the library, but this still uses the same logic and gives the incorrect date.
Expected behavior
This date should be converted to 1960 and not 1979.
Screenshots
N/A
Additional context
The logic inside StringUtil::convertStringToDate and StringUtil::convertStringToDateTime just need to be updated to something similar to the other library (perhaps even introducing that library as a dependency).
The text was updated successfully, but these errors were encountered:
SDK you're using:
Describe the bug
When retrieving a list of employees, we noticed some of them coming back with the incorrect date of birth, more specifically when their date of birth was prior to 1970.
To Reproduce
Steps to reproduce the behavior:
"DateOfBirth": "/Date(-310867200000+0000)/",
when callingEmployee::getDateOfBirthAsDate
.1979
, but it should actually return1960
.Date::toDateTime
from https://github.com/webapix/dot-net-json-date-formatter this will actually convert to1960
correctly.Expected behavior
This date should be converted to 1960 and not 1979.
Screenshots
N/A
Additional context
The logic inside
StringUtil::convertStringToDate
andStringUtil::convertStringToDateTime
just need to be updated to something similar to the other library (perhaps even introducing that library as a dependency).The text was updated successfully, but these errors were encountered: