incubator-oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattm...@apache.org
Subject svn commit: r1037370 - in /incubator/oodt/trunk: CHANGES.txt commons/src/main/java/org/apache/oodt/commons/util/DateConvert.java
Date Sun, 21 Nov 2010 02:32:51 GMT
Author: mattmann
Date: Sun Nov 21 02:32:51 2010
New Revision: 1037370

URL: http://svn.apache.org/viewvc?rev=1037370&view=rev
Log:
- fix for OODT-62 DateTimeVersioner fails on + side of the GMT line

Modified:
    incubator/oodt/trunk/CHANGES.txt
    incubator/oodt/trunk/commons/src/main/java/org/apache/oodt/commons/util/DateConvert.java

Modified: incubator/oodt/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/CHANGES.txt?rev=1037370&r1=1037369&r2=1037370&view=diff
==============================================================================
--- incubator/oodt/trunk/CHANGES.txt (original)
+++ incubator/oodt/trunk/CHANGES.txt Sun Nov 21 02:32:51 2010
@@ -4,6 +4,8 @@ Apache OODT Change Log
 Release 0.2 (Current Development)
 --------------------------------------------
 
+* OODT-62 DateTimeVersioner fails on + side of the GMT line (Thomas Bennett via mattmann)
+
 * OODT-57 LuceneCatalog.getNumHits() doesn't properly translate the 
   given Query object into the equivalent Lucene query (Gabe Resneck via mattmann)
 

Modified: incubator/oodt/trunk/commons/src/main/java/org/apache/oodt/commons/util/DateConvert.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/commons/src/main/java/org/apache/oodt/commons/util/DateConvert.java?rev=1037370&r1=1037369&r2=1037370&view=diff
==============================================================================
--- incubator/oodt/trunk/commons/src/main/java/org/apache/oodt/commons/util/DateConvert.java
(original)
+++ incubator/oodt/trunk/commons/src/main/java/org/apache/oodt/commons/util/DateConvert.java
Sun Nov 21 02:32:51 2010
@@ -131,9 +131,9 @@ public class DateConvert {
 			}
 
 			// Determine the sign of the offset.
-			String sign = "-";
-			if (String.valueOf(tzOffsetMS).indexOf("+") != -1) {
-				sign = "+";
+			String sign = "+";
+			if (String.valueOf(tzOffsetMS).indexOf("-") != -1) {
+				sign = "-";
 			}
 
 			dateString = dateString.concat(sign + hourString + ":" + minuteString);



Mime
View raw message