Fixed Util ToUnixTimeMillisecondsPoly() to return long, since the timestamp cannot have decimal point.

This commit is contained in:
Qwx 2018-04-01 18:56:47 +03:00
parent e40375865e
commit cdceb6a57a

View File

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