mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-11 16:32:57 +00:00
Allow inputs such as double, long, (...) instead of string only
This commit is contained in:
@@ -13,7 +13,7 @@ namespace CryptoExchange.Net.Converters
|
||||
|
||||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
|
||||
{
|
||||
var t = double.Parse((string)reader.Value, CultureInfo.InvariantCulture);
|
||||
var t = double.Parse((string)reader.Value.ToString(), CultureInfo.InvariantCulture);
|
||||
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user