Skip to content

Commit

Permalink
FIX-2192 fix culture invariant bug
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbruvik committed Jan 10, 2024
1 parent bf678f5 commit 7a1d2f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/WitsmlExplorer.Api/Models/LogData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Globalization;
using System.Text.Json.Serialization;

using WitsmlExplorer.Api.Converters;
Expand All @@ -25,7 +26,7 @@ public class LogDataValue
{
public LogDataValue(string value)
{
Value = double.TryParse(value, out double doubleValue) ? doubleValue : value;
Value = double.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out double doubleValue) ? doubleValue : value;
}
public object Value { get; }
}
Expand Down

0 comments on commit 7a1d2f9

Please sign in to comment.