From 7f8cfe156802958b1beb10e790ba6d8ce8d31ac8 Mon Sep 17 00:00:00 2001 From: jarle pedersen Date: Wed, 9 May 2018 13:06:23 +0200 Subject: [PATCH] set thread cultureInfo --- .../ChangelogProviders/SpatialDbChangelog.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kartverket.Geosynkronisering.Server/Kartverket.Geosynkronisering/ChangelogProviders/SpatialDbChangelog.cs b/Kartverket.Geosynkronisering.Server/Kartverket.Geosynkronisering/ChangelogProviders/SpatialDbChangelog.cs index 0bc64bb..d49c921 100644 --- a/Kartverket.Geosynkronisering.Server/Kartverket.Geosynkronisering/ChangelogProviders/SpatialDbChangelog.cs +++ b/Kartverket.Geosynkronisering.Server/Kartverket.Geosynkronisering/ChangelogProviders/SpatialDbChangelog.cs @@ -1,7 +1,9 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.IO; using System.Linq; +using System.Threading; using System.Xml; using System.Xml.Linq; using System.Xml.XPath; @@ -582,6 +584,8 @@ private XElement BuildChangelogRoot(int datasetId) string schemaLocation = nsChlogf.NamespaceName + " " + ServiceData.SchemaLocation(); schemaLocation += " " + _pNsApp + " " + _pSchemaFileUri; + Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); + //"2001-12-17T09:30:47Z" XElement changelogRoot = new XElement(nsChlogf + "TransactionCollection",