Open AjeetYadav07 opened 4 days ago
As per HL7 FHIR specification given in to below URL "dateTime" data type should support Format : YYYY-MM-DDThh:mm:ss+zz:zz . We had seen current HAPI FHIR implementation is always expecting millsec if we pass +zz:zz ( timezone) component as a input.
Sending 2015-02-07T13:28:17+00:00(when not including milisec) for the last_updated parameter in our questionnaire API (using hapi library DateAndList type) might cause hapi to return an error. It seems DateAndList might not expect time zones without milisecond.
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "processing", "diagnostics": "HAPI-1883: Invalid date/time format: "2015-02-07T13:28:17 00:00": Expected character '.' at index 19 but found " } ] }
Expected behavior it should accept the zone offset without milisecond precision as well.
Screenshots![image](https://github.com/hapifhir/hapi-fhir/assets/68940876/79c9149d-2f53-46e9-903e-e7f6b6257300)
Environment (please complete the following information):