Merge pull request #2130 from tianqiaoxiangzhe/master

fix  schedule caluclate next time
This commit is contained in:
Kenneth Skovhede
2016-11-21 10:09:48 +01:00
committed by GitHub
+1 -1
View File
@@ -274,7 +274,7 @@ namespace Duplicati.Server
//Caluclate next time, by finding the first entry later than now
try
{
start = GetNextValidTime(start, new DateTime(Math.Max(DateTime.Now.AddSeconds(1).Ticks, start.AddSeconds(1).Ticks), DateTimeKind.Utc), sc.Repeat, sc.AllowedDays);
start = GetNextValidTime(start, new DateTime(Math.Max(DateTime.UtcNow.AddSeconds(1).Ticks, start.AddSeconds(1).Ticks), DateTimeKind.Utc), sc.Repeat, sc.AllowedDays);
}
catch(Exception ex)
{