From 4b40a1b477c149d8c8cc0d4b225da208c3cfad12 Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Tue, 20 Feb 2018 20:47:40 +0100 Subject: [PATCH] Fixed DateTime to timestamp int --> double --- SpotifyAPI/Web/Util.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpotifyAPI/Web/Util.cs b/SpotifyAPI/Web/Util.cs index 3e5f234d..bea158c1 100644 --- a/SpotifyAPI/Web/Util.cs +++ b/SpotifyAPI/Web/Util.cs @@ -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; } }