Skip to content

Commit fe149f9

Browse files
authored
Merge pull request #79 from KelvinTegelaar/master
[pull] master from KelvinTegelaar:master
2 parents 02a9454 + dea8a2f commit fe149f9

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Scheduler/Invoke-ListScheduledItems.ps1

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using namespace System.Net
22

3-
Function Invoke-ListScheduledItems {
3+
function Invoke-ListScheduledItems {
44
<#
55
.FUNCTIONALITY
66
Entrypoint,AnyTenant
@@ -65,14 +65,10 @@ Function Invoke-ListScheduledItems {
6565
}
6666
try {
6767
$Task.ExecutedTime = [DateTimeOffset]::FromUnixTimeSeconds($Task.ExecutedTime).UtcDateTime
68-
} catch {
69-
$Task.ExecutedTime = [DateTime]::MinValue
70-
}
68+
} catch {}
7169
try {
7270
$Task.ScheduledTime = [DateTimeOffset]::FromUnixTimeSeconds($Task.ScheduledTime).UtcDateTime
73-
} catch {
74-
$Task.ScheduledTime = [DateTime]::MinValue
75-
}
71+
} catch {}
7672
$Task
7773
}
7874

version_latest.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.4.0
1+
7.4.1

0 commit comments

Comments
 (0)