From 0d940937b9fa354e50af84f6e9c9a5c8cc809bb5 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sun, 15 Sep 2019 17:47:18 +1000 Subject: [PATCH] fix failing test (timezone dependence) --- .../test/java/org/hl7/fhir/r5/model/BaseDateTimeTypeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/model/BaseDateTimeTypeTest.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/model/BaseDateTimeTypeTest.java index cd5afbd30..6fc50b080 100644 --- a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/model/BaseDateTimeTypeTest.java +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/model/BaseDateTimeTypeTest.java @@ -52,8 +52,8 @@ public class BaseDateTimeTypeTest { // FHIRPath tests: assertNull( compareDateTimes("1974-12-25", "1974-12-25T12:34:00+10:00")); assertNull( compareDateTimes("1974-12-25T12:34:00+10:00", "1974-12-25")); - assertFalse(compareDateTimes("1974-12-25", "1974-12-25T12:34:00-10:00")); - assertFalse(compareDateTimes("1974-12-25T12:34:00-10:00", "1974-12-25")); + assertFalse(compareDateTimes("1974-12-25", "1974-12-23T12:34:00+10:00")); // false because they can't be the same date irrespective of precision + assertFalse(compareDateTimes("1974-12-23T12:34:00+10:00", "1974-12-25")); assertNull( compareDateTimes("1974-12-25", "1974-12-25T12:34:00Z")); assertNull( compareDateTimes("1974-12-25T12:34:00Z", "1974-12-25")); assertFalse(compareDateTimes("2012-04-15", "2012-04-16"));