-
Notifications
You must be signed in to change notification settings - Fork 5
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
DateTime conversion: MedicationStatement.DateAsserted #304
Comments
This appears to be caused by the dateConversion in: AccesStructuredMedicationSteps line 538. DateTime dateAsserted = DateTime.Parse(medStatement.DateAsserted); This converts the correct time to BST (2019-09-10T11:44:36.8010000+01:00) |
Will recheck on 1.2.4 (suspect not an issue due to current TZ) |
From my initial investigation, this appears to the fact that the code, is using utcNow which does not apply the offset for BST, and hence why there was one hour discrepancy...(test was run in BST) |
Confirm this is working fine now. |
Thanks for confirming, I will further investigate this and develop a fix should one be required. |
We are supplying DateAsserted as
"dateAsserted": "2019-09-10T10:42:08.425Z",
And acceptance test returns
Shouldly.ShouldAssertException : toCheck
should be less than or equal to
2019-09-10T10:44:37.3810160Z
but was
2019-09-10T11:44:36.8010000+01:00
The text was updated successfully, but these errors were encountered: