Skip to content

Commit cdceb6a

Browse files
committed
Fixed Util ToUnixTimeMillisecondsPoly() to return long, since the timestamp cannot have decimal point.
1 parent e403758 commit cdceb6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SpotifyAPI/Web/Util.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public static string GetStringAttribute<T>(this T en, string separator = "") whe
2323
return string.Join(separator, list);
2424
}
2525

26-
public static double ToUnixTimeMillisecondsPoly(this DateTime time)
26+
public static long ToUnixTimeMillisecondsPoly(this DateTime time)
2727
{
28-
return time.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds;
28+
return (long)time.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds;
2929
}
3030
}
3131

0 commit comments

Comments
 (0)