Skip to content

Commit

Permalink
Use 'CultureInfo.InvariantCulture' when converting the unix timestamp…
Browse files Browse the repository at this point in the history
… to string
  • Loading branch information
ahmedisam99 committed Sep 3, 2024
1 parent 7a35e47 commit 437b4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Redis.OM/RedisObjectHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ internal static IDictionary<string, object> BuildHashSet(this object obj)
var val = (DateTime)property.GetValue(obj);
if (val != default)
{
hash.Add(propertyName, new DateTimeOffset(val).ToUnixTimeMilliseconds().ToString());
hash.Add(propertyName, new DateTimeOffset(val).ToUnixTimeMilliseconds().ToString(CultureInfo.InvariantCulture));
}
}
else if (type == typeof(Vector))
Expand Down

0 comments on commit 437b4fe

Please sign in to comment.