From 5830d01c23f7adc0599524e1d0db8714bf563520 Mon Sep 17 00:00:00 2001 From: gered Date: Wed, 6 Aug 2014 10:02:11 -0400 Subject: [PATCH] fix ->local-timestamp so it actually returns local timestamp strings --- README.md | 2 +- src/clj_hl7_fhir/util.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"