This commit is contained in:
2020-05-23 15:49:52 +00:00
parent a1e6acc5b4
commit b2a7b8e0b9
4 changed files with 15 additions and 25 deletions

View File

@@ -35,8 +35,7 @@ namespace AyaNova.Util
}
internal static void SetNextBackup()
{
//If backup at 6pm and come here need to check if should add day
{
DateTime utcNow = DateTime.UtcNow;
//Has last backup run more than 24 hours ago?
if (NextBackup < utcNow.AddHours(-24))