From 811b96551c4709304a1591f025f7092e7dee878a Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Sun, 6 May 2018 18:29:07 +0200 Subject: [PATCH] Fix failing test in WbDateVariable --- .../src/org/openrefine/wikidata/schema/WbDateConstant.java | 2 +- .../src/org/openrefine/wikidata/schema/WbDateVariableTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/wikidata/src/org/openrefine/wikidata/schema/WbDateConstant.java b/extensions/wikidata/src/org/openrefine/wikidata/schema/WbDateConstant.java index 72cca50a2..1f9b41ac2 100644 --- a/extensions/wikidata/src/org/openrefine/wikidata/schema/WbDateConstant.java +++ b/extensions/wikidata/src/org/openrefine/wikidata/schema/WbDateConstant.java @@ -60,7 +60,7 @@ public class WbDateConstant implements WbExpression { .put(new SimpleDateFormat("yyyy-MM-dd"), 11) .put(new SimpleDateFormat("yyyy-MM-dd'T'HH"), 12) .put(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm"), 13) - .put(new SimpleDateFormat("yyyy-MM-dd'T'HH:mmZ"), 13) + .put(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"), 13) .put(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"), 14).build(); private TimeValue parsed; diff --git a/extensions/wikidata/tests/src/org/openrefine/wikidata/schema/WbDateVariableTest.java b/extensions/wikidata/tests/src/org/openrefine/wikidata/schema/WbDateVariableTest.java index b7a3f136d..5fb1372e4 100644 --- a/extensions/wikidata/tests/src/org/openrefine/wikidata/schema/WbDateVariableTest.java +++ b/extensions/wikidata/tests/src/org/openrefine/wikidata/schema/WbDateVariableTest.java @@ -35,7 +35,7 @@ public class WbDateVariableTest extends WbVariableTest { private TimeValue year = Datamodel.makeTimeValue(2018, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 9, 0, 1, 0, TimeValue.CM_GREGORIAN_PRO); private TimeValue day = Datamodel.makeTimeValue(2018, (byte) 2, (byte) 27, TimeValue.CM_GREGORIAN_PRO); - private TimeValue minute = Datamodel.makeTimeValue(2001, (byte) 2, (byte) 3, (byte)4, (byte)5, (byte)0, (byte)9, (byte)0, (byte)1, (byte)0, TimeValue.CM_GREGORIAN_PRO); + private TimeValue minute = Datamodel.makeTimeValue(2001, (byte) 2, (byte) 3, (byte)4, (byte)5, (byte)0, (byte)13, (byte)0, (byte)1, (byte)0, TimeValue.CM_GREGORIAN_PRO); @Override