Skip to content

Commit 8060d41

Browse files
committed
More rollback
1 parent ef39f36 commit 8060d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Core/Extensions/ObjectExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public static Attempt<object> TryConvertTo(this object input, Type target)
302302
// Because decimal 100.01m will happily convert to integer 100, it
303303
// makes sense that string "100.01" *also* converts to integer 100.
304304
var input2 = NormalizeNumberDecimalSeparator(input);
305-
return Attempt<object>.If(decimal.TryParse(input2, out var value2), Convert.ToInt32(value2, CultureInfo.InvariantCulture));
305+
return Attempt<object>.If(decimal.TryParse(input2, out var value2), Convert.ToInt32(value2));
306306
}
307307

308308
if (target == typeof(long))

0 commit comments

Comments
 (0)