fix: remove convert universal time
All checks were successful
.NET Test Pipeline / build (push) Successful in 1m23s
Build and Deploy Docker Container / build-and-deploy (push) Successful in 1m30s

This commit is contained in:
2025-02-14 17:47:56 +03:00
parent f6d1543108
commit 13eb3c0033

View File

@ -45,7 +45,7 @@ public static class CronUpdateSkipService
if (depth <= 0)
return [];
DateTimeOffset nextRunTime = (currentDate?.ToDateTime(TimeOnly.MinValue) ?? DateTime.Now).ToUniversalTime();
DateTimeOffset nextRunTime = (currentDate?.ToDateTime(TimeOnly.MinValue) ?? DateTime.Now);
List<DateTimeOffset> result = [];
do
@ -68,7 +68,7 @@ public static class CronUpdateSkipService
continue;
}
result.Add(nextOccurrence.Value.ToLocalTime());
result.Add(nextOccurrence.Value);
nextRunTime = nextOccurrence.Value.AddMinutes(1);
} while (result.Count < depth);