Sorry, nothing to see here
[mono.git] / mcs / class / System / System.Net / MonoHttpDate.cs
index e7ebfe419f530c26e933e45357644b5df2d4fb6e..3a5df5e457f450a9eae7522972c1315ef071dcbc 100644 (file)
@@ -5,6 +5,27 @@
 //   Lawrence Pit (loz@cable.a2000.nl)\r
 //\r
 \r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+\r
 using System;\r
 using System.Globalization;\r
 \r
@@ -20,14 +41,13 @@ namespace System.Net
                private static readonly string asctime_date = "ddd MMM d HH:mm:ss yyyy";\r
                private static readonly string [] formats = \r
                        new string [] {rfc1123_date, rfc850_date, asctime_date};\r
-               private static readonly CultureInfo enUS = new CultureInfo("en-US", false);\r
                \r
                internal static DateTime Parse (string dateStr)\r
                {                       \r
                         return DateTime.ParseExact (dateStr, \r
                                                     formats, \r
-                                                    enUS\r
+                                                    CultureInfo.InvariantCulture\r
                                                     DateTimeStyles.AllowWhiteSpaces);\r
                }\r
        }\r
-}
\ No newline at end of file
+}\r