wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r803931 - /incubator/wink/trunk/wink-component-test-support/src/main/java/org/apache/wink/test/diff/DifferenceListenerIgnoreUpdateOrCompareTimes.java
Date Thu, 13 Aug 2009 15:33:43 GMT
Author: bluk
Date: Thu Aug 13 15:33:42 2009
New Revision: 803931

URL: http://svn.apache.org/viewvc?rev=803931&view=rev
Log:
Only adjust time if TimeZone is GMT

See [WINK-127]

Modified:
    incubator/wink/trunk/wink-component-test-support/src/main/java/org/apache/wink/test/diff/DifferenceListenerIgnoreUpdateOrCompareTimes.java

Modified: incubator/wink/trunk/wink-component-test-support/src/main/java/org/apache/wink/test/diff/DifferenceListenerIgnoreUpdateOrCompareTimes.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-component-test-support/src/main/java/org/apache/wink/test/diff/DifferenceListenerIgnoreUpdateOrCompareTimes.java?rev=803931&r1=803930&r2=803931&view=diff
==============================================================================
--- incubator/wink/trunk/wink-component-test-support/src/main/java/org/apache/wink/test/diff/DifferenceListenerIgnoreUpdateOrCompareTimes.java
(original)
+++ incubator/wink/trunk/wink-component-test-support/src/main/java/org/apache/wink/test/diff/DifferenceListenerIgnoreUpdateOrCompareTimes.java
Thu Aug 13 15:33:42 2009
@@ -20,7 +20,6 @@
 
 package org.apache.wink.test.diff;
 
-import java.util.Calendar;
 import java.util.HashSet;
 import java.util.Set;
 import java.util.TimeZone;
@@ -79,7 +78,7 @@
                 XMLGregorianCalendar test = datatypeFactory.newXMLGregorianCalendar(testDateStr);
                 XMLGregorianCalendar control =
                     datatypeFactory.newXMLGregorianCalendar(controlDateStr);
-                if (TimeZone.getDefault().useDaylightTime()) {
+                if (TimeZone.getDefault().useDaylightTime() && TimeZone.getDefault().getRawOffset()
== 0) {
                     test.setTimezone(60);
                 }
                 if (test.compare(control) == DatatypeConstants.EQUAL)



Mime
View raw message