diff --git a/src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs b/src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs index 247a2a09ba7a..0e0cf5587dbf 100644 --- a/src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs @@ -1,4 +1,5 @@ using System.Buffers; +using System.Globalization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Options; @@ -42,7 +43,7 @@ public void OnResultExecuting(ResultExecutingContext context) { var serializerSettings = new JsonSerializerSettings(); serializerSettings.Converters.Add( - new IsoDateTimeConverter { DateTimeFormat = _format }); + new IsoDateTimeConverter { DateTimeFormat = _format, Culture = CultureInfo.InvariantCulture }); objectResult.Formatters.Clear(); objectResult.Formatters.Add( new AngularJsonMediaTypeFormatter(serializerSettings, _arrayPool, _options));