diff --git a/README.md b/README.md index 3551681..a3e406f 100644 --- a/README.md +++ b/README.md @@ -216,7 +216,7 @@ into properly formatted ISO date/time strings that match FHIR specifications: | Function | Format | Example output |----------|--------|--------------- | `->timestamp` | `yyyy-MM-dd'T'HH:mm:ssXXX` | `2014-08-05T10:49:37-04:00` -| `->local-timestamp` | `yyyy-MM-dd'T'HH:mm:ss` | `2014-08-05T10:49:37-04:00` +| `->local-timestamp` | `yyyy-MM-dd'T'HH:mm:ss` | `2014-08-06T10:01:22` | `->date` | `yyyy-MM-dd` | `2014-08-05` ##### Search Results diff --git a/src/clj_hl7_fhir/util.clj b/src/clj_hl7_fhir/util.clj index 631002b..c28c6a1 100644 --- a/src/clj_hl7_fhir/util.clj +++ b/src/clj_hl7_fhir/util.clj @@ -27,7 +27,7 @@ will not include any timezone information and so is appropriate for local timezone date/times only." [^Date date] - (format-date date iso8601-timestamp)) + (format-date date iso8601-local-timestamp)) (defn ->date "returns an ISO8601 formatted date string for the given date object"