Skip to content

Commit fdee427

Browse files
Make md5hash independent of the current culture thread.
1 parent 6703d77 commit fdee427

File tree

3 files changed

+2311
-6
lines changed

3 files changed

+2311
-6
lines changed

dotnet/src/dotnetframework/GxClasses/Model/GXSilentTrn.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -629,14 +629,17 @@ public override string ToString()
629629
if (o != null)
630630
{
631631
#if NETCORE
632-
var fixedPoint = "F";
633-
if (o is decimal)
634-
s += ((decimal)o).ToString(fixedPoint, CultureInfo.InvariantCulture);
635-
else
636-
s += o.ToString();
632+
string fixedPoint = "F";
633+
if (o is decimal)
634+
s += ((decimal)o).ToString(fixedPoint, CultureInfo.InvariantCulture);
637635
#else
638-
s += o.ToString();
636+
if (o is decimal)
637+
s += ((decimal)o).ToString(CultureInfo.InvariantCulture);
639638
#endif
639+
else if (o is DateTime)
640+
s += ((DateTime)o).ToString(CultureInfo.InvariantCulture);
641+
else
642+
s += o.ToString();
640643
}
641644
}
642645
}

0 commit comments

Comments
 (0)