commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r373572 - in /jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools: ISO8601DateParser.java RFC822DateParser.java
Date Mon, 30 Jan 2006 19:28:49 GMT
Author: mvdb
Date: Mon Jan 30 11:28:41 2006
New Revision: 373572

URL: http://svn.apache.org/viewcvs?rev=373572&view=rev
Log:
Fix issue 37419.

Modified:
    jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java
    jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/RFC822DateParser.java

Modified: jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java?rev=373572&r1=373571&r2=373572&view=diff
==============================================================================
--- jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java
(original)
+++ jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java
Mon Jan 30 11:28:41 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 1999,2004 The Apache Software Foundation.
+ * Copyright 1999,2006 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,10 +16,10 @@
 
 package org.apache.commons.feedparser.tools;
 
-import java.io.*;
-import java.net.*;
-import java.util.*;
-import java.text.*;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Locale;
+import java.util.TimeZone;
 
 /**
  * ISO 8601 date parsing utility.  Designed for parsing the ISO subset used in
@@ -34,7 +34,7 @@
     // 2004-06-20T06:GMT22:01Z
 
     private static SimpleDateFormat df
-        = new SimpleDateFormat( "yyyy-MM-dd'T'hh:mm:ssz" );
+        = new SimpleDateFormat( "yyyy-MM-dd'T'hh:mm:ssz", Locale.ENGLISH );
 
     // http://www.cl.cam.ac.uk/~mgk25/iso-time.html
     //    

Modified: jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/RFC822DateParser.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/RFC822DateParser.java?rev=373572&r1=373571&r2=373572&view=diff
==============================================================================
--- jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/RFC822DateParser.java
(original)
+++ jakarta/commons/dormant/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/RFC822DateParser.java
Mon Jan 30 11:28:41 2006
@@ -16,10 +16,10 @@
 
 package org.apache.commons.feedparser.tools;
 
-import java.io.*;
-import java.net.*;
-import java.util.*;
-import java.text.*;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Locale;
+import java.util.TimeZone;
 
 /**
  *
@@ -83,7 +83,7 @@
 public class RFC822DateParser {
 
     private static SimpleDateFormat df
-        = new SimpleDateFormat( "EEE, dd MMM yyyy hh:mm:ss z" );
+        = new SimpleDateFormat( "EEE, dd MMM yyyy hh:mm:ss z", Locale.ENGLISH );
 
     public static Date parse( String input ) throws java.text.ParseException {
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message