Skip to content

Commit d195faf

Browse files
committed
change default incremental sync range
1 parent cd8fd90 commit d195faf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

digicert-certcentral-caplugin/CertCentralCAPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,8 @@ public async Task Synchronize(BlockingCollection<AnyCAPluginCertificate> blockin
761761
_logger.MethodEntry(LogLevel.Trace);
762762

763763
// DigiCert issue with treating the timezone as mountain time. -7 hours to accomodate DST
764-
// If no last sync, use 7 days in the past as the starting point (only relevant for incremental syncs)
765-
lastSync = lastSync.HasValue ? lastSync.Value.AddHours(-7) : DateTime.UtcNow.AddDays(-7);
764+
// If no last sync, use a 6 day window for the sync range (only relevant for incremental syncs)
765+
lastSync = lastSync.HasValue ? lastSync.Value.AddHours(-7) : DateTime.UtcNow.AddDays(-5);
766766
DateTime? utcDate = DateTime.UtcNow.AddDays(1);
767767
string lastSyncFormat = FormatSyncDate(lastSync);
768768
string todaySyncFormat = FormatSyncDate(utcDate);

0 commit comments

Comments
 (0)