diff --git a/src/Jackett.Common/Indexers/BaseIndexer.cs b/src/Jackett.Common/Indexers/BaseIndexer.cs index 7ed7c8545..ed8ac7fdc 100644 --- a/src/Jackett.Common/Indexers/BaseIndexer.cs +++ b/src/Jackett.Common/Indexers/BaseIndexer.cs @@ -196,7 +196,7 @@ namespace Jackett.Common.Indexers // fix publish date // some trackers do not keep their clocks up to date and can be ~20 minutes out! - if (r.PublishDate > DateTime.Now) + if (!EnvironmentUtil.IsDebug && r.PublishDate > DateTime.Now) r.PublishDate = DateTime.Now; // generate magnet link from info hash (not allowed for private sites) diff --git a/src/Jackett.Common/Utils/EnvironmentUtil.cs b/src/Jackett.Common/Utils/EnvironmentUtil.cs index 3f8f6f3de..9165587e2 100644 --- a/src/Jackett.Common/Utils/EnvironmentUtil.cs +++ b/src/Jackett.Common/Utils/EnvironmentUtil.cs @@ -27,5 +27,17 @@ namespace Jackett.Common.Utils public static bool IsWindows => Environment.OSVersion.Platform == PlatformID.Win32NT; + public static bool IsDebug + { + get + { +#if DEBUG + return true; +#else + return false; +#endif + } + } + } }