Skip to content

Commit

Permalink
Merge pull request #8 from gemstone/timestamp-culture
Browse files Browse the repository at this point in the history
Use invariant culture for double-to-string conversion when parsing timestamps
  • Loading branch information
ritchiecarroll authored Nov 4, 2024
2 parents a925b19 + 8f8a4df commit b98f070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gemstone.COMTRADE/Timestamp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public Timestamp(string lineImage)

seconds += milliseconds;

parts[^1] = seconds.ToString("00.000000");
parts[^1] = seconds.ToString("00.000000", CultureInfo.InvariantCulture);

lineImage = string.Join(":", parts).RemoveWhiteSpace();

Expand Down

0 comments on commit b98f070

Please sign in to comment.