diff --git a/Discord Media Loader.Application/Classes/RPC/DiscordRpcHelper.cs b/Discord Media Loader.Application/Classes/RPC/DiscordRpcHelper.cs new file mode 100644 index 0000000..de80a83 --- /dev/null +++ b/Discord Media Loader.Application/Classes/RPC/DiscordRpcHelper.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DML.Application.Classes.RPC +{ + public static class DiscordRpcHelper + { + public static long DateTimeToTimestamp(DateTime dt) + { + return (dt.Ticks - 621355968000000000) / 10000000; + } + } +} diff --git a/Discord Media Loader.Application/DML.Application.csproj b/Discord Media Loader.Application/DML.Application.csproj index 3f6bc4d..01bf821 100644 --- a/Discord Media Loader.Application/DML.Application.csproj +++ b/Discord Media Loader.Application/DML.Application.csproj @@ -162,6 +162,7 @@ + Form