ca.uhn.fhir.parser.DataFormatException: Invalid date/time format: "2016-09-06T09:05"

GitHub | XcrigX | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    DateParam parsing failing on date with minutes but no seconds (2.0)

    GitHub | 8 months ago | XcrigX
    ca.uhn.fhir.parser.DataFormatException: Invalid date/time format: "2016-09-06T09:05"

    Root Cause Analysis

    1. ca.uhn.fhir.parser.DataFormatException

      Invalid date/time format: "2016-09-06T09:05"

      at ca.uhn.fhir.model.primitive.BaseDateTimeDt.throwBadDateFormat()
    2. HAPI FHIR - Core Library
      DateParam.<init>
      1. ca.uhn.fhir.model.primitive.BaseDateTimeDt.throwBadDateFormat(BaseDateTimeDt.java:465)
      2. ca.uhn.fhir.model.primitive.BaseDateTimeDt.validateLengthIsAtLeast(BaseDateTimeDt.java:526)
      3. ca.uhn.fhir.model.primitive.BaseDateTimeDt.parse(BaseDateTimeDt.java:289)
      4. ca.uhn.fhir.model.primitive.BaseDateTimeDt.parse(BaseDateTimeDt.java:39)
      5. ca.uhn.fhir.model.api.BasePrimitive.setValueAsString(BasePrimitive.java:112)
      6. ca.uhn.fhir.model.primitive.BaseDateTimeDt.setValueAsString(BaseDateTimeDt.java:461)
      7. ca.uhn.fhir.rest.param.DateParam.setValueAsString(DateParam.java:263)
      8. ca.uhn.fhir.rest.param.DateParam.<init>(DateParam.java:94)
      8 frames