-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Birth date interpretation issue in Ruby model #150
Comments
I think the problem here is that the
Unfortunately, many people in your payroll system (myself included) were born before 1 Jan 1970, so we are getting erroneous data in our HR system. Previously, when manually parsing the XML/JSON data in the old SDK, we used the following Ruby helper method to reliably convert from the ASP.NET date string to a ruby date:
|
Actually, I think this could be solved if the |
This triage looks good. Will do my best to get this patched up asap. Do you have a workaround in the interim? |
Fixed in 3.0.0 - thank you for the code samples. Let me know if anything else crops up surrounding this. |
Discovered a fairly high priority, reproducible error in the date interpretation in the Xero Ruby Gem.
If I enter an employee birthdate of 31st October 1966 in the AU payroll, and when I pull the employee data using the Gem, the date comes across as @date_of_birth=Sun, 04 Mar 1973.
I've changed a sample date employee to the birthdate of 31/10/1966 and the same thing happens.
Haven't checked the other country payroll yet, but I assume they are using the same date conversion routine?
The text was updated successfully, but these errors were encountered: