Skip to content

Commit

Permalink
Corrected property names for job start & end dates (#5115)
Browse files Browse the repository at this point in the history
  • Loading branch information
alevyinroc authored and potatoqualitee committed Feb 24, 2019
1 parent ebc5508 commit cde3354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/Set-DbaAgentSchedule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,12 @@ function Set-DbaAgentSchedule {

if ($StartDate) {
Write-Message -Message "Setting job schedule start date to $StartDate for schedule $ScheduleName" -Level Verbose
$JobSchedule.StartDate = $StartDate
$JobSchedule.ActiveStartDate = $StartDate
}

if ($EndDate) {
Write-Message -Message "Setting job schedule end date to $EndDate for schedule $ScheduleName" -Level Verbose
$JobSchedule.EndDate = $EndDate
$JobSchedule.ActiveEndDate = $EndDate
}

if ($StartTime) {
Expand Down

0 comments on commit cde3354

Please sign in to comment.