Skip to content

Commit 437b4fe

Browse files
committed
Use 'CultureInfo.InvariantCulture' when converting the unix timestamp to string
1 parent 7a35e47 commit 437b4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Redis.OM/RedisObjectHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ internal static IDictionary<string, object> BuildHashSet(this object obj)
371371
var val = (DateTime)property.GetValue(obj);
372372
if (val != default)
373373
{
374-
hash.Add(propertyName, new DateTimeOffset(val).ToUnixTimeMilliseconds().ToString());
374+
hash.Add(propertyName, new DateTimeOffset(val).ToUnixTimeMilliseconds().ToString(CultureInfo.InvariantCulture));
375375
}
376376
}
377377
else if (type == typeof(Vector))

0 commit comments

Comments
 (0)