Browse Source

Forcing invariant culture to ToUTCString

Sebastien Ros 9 years ago
parent
commit
ac54327c5a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jint/Native/Date/DatePrototype.cs

+ 1 - 1
Jint/Native/Date/DatePrototype.cs

@@ -525,7 +525,7 @@ namespace Jint.Native.Date
             {
             {
                 throw new JavaScriptException(Engine.TypeError);
                 throw new JavaScriptException(Engine.TypeError);
             } )
             } )
-            .ToDateTime().ToUniversalTime().ToString("ddd MMM dd yyyy HH:mm:ss 'GMT'");
+            .ToDateTime().ToUniversalTime().ToString("ddd MMM dd yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture);
         }
         }
 
 
         private JsValue ToISOString(JsValue thisObj, JsValue[] arguments)
         private JsValue ToISOString(JsValue thisObj, JsValue[] arguments)