mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 15:06:26 +00:00
Fixed Util ToUnixTimeMillisecondsPoly() to return long, since the timestamp cannot have decimal point.
This commit is contained in:
parent
e40375865e
commit
cdceb6a57a
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user