Explorar o código

2004-01-09 Gonzalo Paniagua Javier <[email protected]>

	* MonoHttpDate.cs: use the invariant culture, not en-US. Suspected
	guilty for bug 52629.

svn path=/trunk/mcs/; revision=21861
Gonzalo Paniagua Javier %!s(int64=22) %!d(string=hai) anos
pai
achega
e45178231c

+ 5 - 0
mcs/class/System/System.Net/ChangeLog

@@ -1,3 +1,8 @@
+2004-01-09  Gonzalo Paniagua Javier <[email protected]>
+
+	* MonoHttpDate.cs: use the invariant culture, not en-US. Suspected
+	guilty for bug 52629.
+
 2003-12-16  Gonzalo Paniagua Javier <[email protected]>
 
 	* CredentialCache.cs: return null instead of throwing NotImplemented.

+ 2 - 3
mcs/class/System/System.Net/MonoHttpDate.cs

@@ -20,14 +20,13 @@ namespace System.Net
 		private static readonly string asctime_date = "ddd MMM d HH:mm:ss yyyy";
 		private static readonly string [] formats = 
 			new string [] {rfc1123_date, rfc850_date, asctime_date};
-		private static readonly CultureInfo enUS = new CultureInfo("en-US", false);
 		
 		internal static DateTime Parse (string dateStr)
 		{			
 			 return DateTime.ParseExact (dateStr, 
 			                             formats, 
-			                             enUS, 
+			                             CultureInfo.InvariantCulture, 
 			                             DateTimeStyles.AllowWhiteSpaces);
 		}
 	}
-}
+}