continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r378559 - /maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/DateTool.java
Date Fri, 17 Feb 2006 16:17:02 GMT
Author: evenisse
Date: Fri Feb 17 08:17:00 2006
New Revision: 378559

URL: http://svn.apache.org/viewcvs?rev=378559&view=rev
Log:
[CONTINUUM-496] Fix end date when project is building

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/DateTool.java

Modified: maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/DateTool.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/DateTool.java?rev=378559&r1=378558&r2=378559&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/DateTool.java
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/DateTool.java
Fri Feb 17 08:17:00 2006
@@ -793,8 +793,13 @@
         }
         if (obj instanceof Number) 
         {
+            long value = ((Number)obj).longValue();
+            if ( value == 0 )
+            {
+                return null;
+            }
             Date d = new Date();
-            d.setTime(((Number)obj).longValue());
+            d.setTime( value );
             return d;
         }
         try



Mime
View raw message