From f1cab9acda45ed8b8346fe94768cfcccc1256492 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Fri, 30 Oct 2009 19:52:19 +0000 Subject: [PATCH] fixed failing test; take 2 --- .../org/springframework/mapping/support/MappingTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.springframework.context/src/test/java/org/springframework/mapping/support/MappingTests.java b/org.springframework.context/src/test/java/org/springframework/mapping/support/MappingTests.java index 233d34718a..904ced982d 100644 --- a/org.springframework.context/src/test/java/org/springframework/mapping/support/MappingTests.java +++ b/org.springframework.context/src/test/java/org/springframework/mapping/support/MappingTests.java @@ -326,7 +326,7 @@ public class MappingTests { // field to multiple fields .addAssemblerMapping("activationDateTime", new Converter, DateTime>() { public DateTime convert(Map source) { - MutableDateTime dateTime = new MutableDateTime(DateTimeZone.UTC); + MutableDateTime dateTime = new MutableDateTime(DateTimeZone.forID("-04:00")); dateTime.setYear(Integer.parseInt(source.get("year"))); dateTime.setMonthOfYear(Integer.parseInt(source.get("month"))); dateTime.setDayOfMonth(Integer.parseInt(source.get("day"))); @@ -344,7 +344,7 @@ public class MappingTests { source.put("activationDateTime.hour", "12"); source.put("activationDateTime.minute", "0"); Account account = mapper.map(source, new Account()); - assertEquals(ISODateTimeFormat.dateTime().withZone(DateTimeZone.UTC).parseDateTime("2009-10-12T12:00:00.000-04:00"), account + assertEquals(ISODateTimeFormat.dateTime().withOffsetParsed().parseDateTime("2009-10-12T12:00:00.000-04:00"), account .getActivationDateTime()); }