Merge pull request #2494 from MrTopCat/fix-timezone-bug

Fix timezone bug
pull/2501/head
Jamie 6 years ago committed by GitHub
commit 1d91d6fa94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -516,7 +516,7 @@ namespace Ombi.Core.Engine
HasLimit = true,
Limit = limit,
Remaining = count,
NextRequest = oldestRequestedAt.AddDays(7),
NextRequest = DateTime.SpecifyKind(oldestRequestedAt.AddDays(7), DateTimeKind.Utc),
};
}
}

@ -652,7 +652,7 @@ namespace Ombi.Core.Engine
HasLimit = true,
Limit = limit,
Remaining = count,
NextRequest = oldestRequestedAt.AddDays(7),
NextRequest = DateTime.SpecifyKind(oldestRequestedAt.AddDays(7), DateTimeKind.Utc),
};
}
}

@ -18,7 +18,7 @@ namespace Ombi.Schedule.Tests
var emailSettings = new Mock<ISettingsService<EmailNotificationSettings>>();
var customziation = new Mock<ISettingsService<CustomizationSettings>>();
var newsletterSettings = new Mock<ISettingsService<NewsletterSettings>>();
var newsletter = new NewsletterJob(null, null, null, null, null, null, customziation.Object, emailSettings.Object, null, null, newsletterSettings.Object, null);
var newsletter = new NewsletterJob(null, null, null, null, null, null, customziation.Object, emailSettings.Object, null, null, newsletterSettings.Object, null, null, null, null);
var ep = new List<int>();
foreach (var i in episodes)

Loading…
Cancel
Save