abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From calav...@apache.org
Subject svn commit: r701343 - /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/AtomDate.java
Date Fri, 03 Oct 2008 10:20:28 GMT
Author: calavera
Date: Fri Oct  3 03:20:25 2008
New Revision: 701343

URL: http://svn.apache.org/viewvc?rev=701343&view=rev
Log:
allows unknown time offset, following the RFC 3339 examples:
"
   This represents the leap second inserted at the end of 1990.

      1990-12-31T15:59:60-08:00

   This represents the same leap second in Pacific Standard Time, 8
   hours behind UTC.

      1937-01-01T12:00:27.87+00:20
"


Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/AtomDate.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/AtomDate.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/AtomDate.java?rev=701343&r1=701342&r2=701343&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/AtomDate.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/AtomDate.java Fri
Oct  3 03:20:25 2008
@@ -235,7 +235,7 @@
   public static Date parse(String date) {
     Matcher m = PATTERN.matcher(date);
     if (m.find()) {
-    	if(m.group(4)==null || m.group(9)==null) 
+    	if(m.group(4)==null) 
     		throw new IllegalArgumentException("Invalid Date Format");
       Calendar c = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
       int hoff = 0, moff = 0, doff = -1;



Mime
View raw message