1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

Fixed: Don't set last write time on episode files if difference is within the same second

Closes #7228
This commit is contained in:
Mark McDowall
2024-09-19 20:03:40 -07:00
committed by Mark McDowall
parent 75fae9262c
commit c199fd05d3
2 changed files with 11 additions and 6 deletions
@@ -1,4 +1,4 @@
using System;
using System;
namespace NzbDrone.Common.Extensions
{
@@ -38,5 +38,10 @@ namespace NzbDrone.Common.Extensions
{
return dateTime >= afterDateTime && dateTime <= beforeDateTime;
}
public static DateTime WithoutTicks(this DateTime dateTime)
{
return dateTime.AddTicks(-(dateTime.Ticks % TimeSpan.TicksPerSecond));
}
}
}