From ed31de12cbba2dcf4328ce59829c2178cb137b65 Mon Sep 17 00:00:00 2001 From: Jaya Raut Date: Sat, 27 May 2023 03:02:22 +0530 Subject: [PATCH] Added culture to make it fetch right timestamp and work DE NL Added culture to make it fetch right timestamp and work DE NL --- src/Splunk.Logging.Common/HttpEventCollectorEventInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Splunk.Logging.Common/HttpEventCollectorEventInfo.cs b/src/Splunk.Logging.Common/HttpEventCollectorEventInfo.cs index 3db64e8..9b8a3d3 100644 --- a/src/Splunk.Logging.Common/HttpEventCollectorEventInfo.cs +++ b/src/Splunk.Logging.Common/HttpEventCollectorEventInfo.cs @@ -176,7 +176,7 @@ public HttpEventCollectorEventInfo( { double epochTime = (datetime - new DateTime(1970, 1, 1)).TotalSeconds; // truncate to 3 digits after floating point - Timestamp = epochTime.ToString("#.000", Thread.CurrentThread.CurrentCulture); + Timestamp = epochTime.ToString("#.000", CultureInfo.GetCultureInfo("en-US")); this.metadata = metadata ?? new Metadata(); Event = new LoggerEvent(id, severity, message, data); }