diff --git a/classe/CalcPop.cs b/classe/CalcPop.cs index 2d0bfe5..0949db5 100644 --- a/classe/CalcPop.cs +++ b/classe/CalcPop.cs @@ -42,7 +42,8 @@ public Stat Calcul(ProgressBar progress) foreach (RemoteFileInfo fileInfo in directoryInfo.Files) { - if (fileInfo.LastWriteTime >= new DateTime(2018, 12, 01)) + DateTime today = DateTime.Today; + if (fileInfo.LastWriteTime >= today.AddDays(-14)) { TransferOperationResult transferResult = session.GetFiles(fileInfo.FullName + "*", "temp.json", false, transferOptions); // Throw on any error