From ea0ed95ca0344cdb10bf58b0e491c59234a0bc0d Mon Sep 17 00:00:00 2001 From: Harry Date: Wed, 24 Dec 2014 14:31:03 -0400 Subject: [PATCH] Fix time bug with scrobbles no need for "ToUniversalTime" to the epoch DateTime --- src/IF.Lastfm.Core/Api/Helpers/ApiExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IF.Lastfm.Core/Api/Helpers/ApiExtensions.cs b/src/IF.Lastfm.Core/Api/Helpers/ApiExtensions.cs index 0f7836f..7d39eda 100644 --- a/src/IF.Lastfm.Core/Api/Helpers/ApiExtensions.cs +++ b/src/IF.Lastfm.Core/Api/Helpers/ApiExtensions.cs @@ -29,7 +29,7 @@ public static string GetApiName(this Enum enumValue) public static int ToUnixTimestamp(this DateTime dt) { - var d = (dt - new DateTime(1970, 1, 1).ToUniversalTime()).TotalSeconds; + var d = (dt - new DateTime(1970, 1, 1)).TotalSeconds; return Convert.ToInt32(d); }