diff --git a/DD.Persistence.Client/Clients/SetpointClient.cs b/DD.Persistence.Client/Clients/SetpointClient.cs index 5f0a838..5a187f0 100644 --- a/DD.Persistence.Client/Clients/SetpointClient.cs +++ b/DD.Persistence.Client/Clients/SetpointClient.cs @@ -5,6 +5,7 @@ using DD.Persistence.Client.Clients.Interfaces.Refit; using DD.Persistence.Models; using System.Text.Json; using System.Text.Json.Serialization; +using System.Globalization; namespace DD.Persistence.Client.Clients; @@ -46,7 +47,7 @@ public class SetpointClient : BaseClient, ISetpointClient setpointConfigs.TryGetValue(valueDto.Key, out var type) && type is not null) - dict[valueDto.Key] = Convert.ChangeType(element.GetString(), type) ?? valueDto.Value; + dict[valueDto.Key] = Convert.ChangeType(element.GetString(), type, CultureInfo.InvariantCulture) ?? valueDto.Value; else dict[valueDto.Key] = valueDto.Value; } diff --git a/DD.Persistence.Client/DD.Persistence.Client.csproj b/DD.Persistence.Client/DD.Persistence.Client.csproj index e56c2f8..2426147 100644 --- a/DD.Persistence.Client/DD.Persistence.Client.csproj +++ b/DD.Persistence.Client/DD.Persistence.Client.csproj @@ -11,9 +11,9 @@