mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Fix time bug with scrobbles
no need for "ToUniversalTime" to the epoch DateTime
This commit is contained in:
parent
2a67393ada
commit
ea0ed95ca0
@ -29,7 +29,7 @@ public static string GetApiName(this Enum enumValue)
|
|||||||
|
|
||||||
public static int ToUnixTimestamp(this DateTime dt)
|
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);
|
return Convert.ToInt32(d);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user