Fixed DateTime to timestamp int --> double

This commit is contained in:
Jonas Dellinger 2018-02-20 20:47:40 +01:00
parent 05721ef9f7
commit 4b40a1b477

View File

@ -23,9 +23,9 @@ namespace SpotifyAPI.Web
return string.Join(separator, list);
}
public static int ToUnixTimeMillisecondsPoly(this DateTime time)
public static double ToUnixTimeMillisecondsPoly(this DateTime time)
{
return (int)time.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds;
return time.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds;
}
}