Skip to content

Commit

Permalink
[Automation] Fixed time zone issue while creating an update deploymen…
Browse files Browse the repository at this point in the history
…t schedule (Azure#14565)

* Bug 9534965: New-AzAutomationSoftwareUpdateConfiguration cmdlet is creating schedule by taking the UTC value as the StartTime instead of local time.

* Update ChangeLog.md

Updating ChangeLog.md

Co-authored-by: Debashish Mohanta <[email protected]>
  • Loading branch information
dmohanta and Debashish Mohanta authored Apr 1, 2021
1 parent 21a7a7d commit 1c7c155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Automation/Automation/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

## Version 1.5.2
* Fixed the issue for starting Python3 runbooks with parameters
* Fixed time zone issue while creating an update deployment schedule.

## Version 1.5.1
* Fixed te issue that complex object cannot be serialized correctly. [#14431]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public SoftwareUpdateConfiguration CreateSoftwareUpdateConfiguration(string reso
{
ScheduleInfo = new Sdk.ScheduleProperties()
{
StartTime = configuration.ScheduleConfiguration.StartTime.ToUniversalTime(),
ExpiryTime = configuration.ScheduleConfiguration.ExpiryTime.ToUniversalTime(),
StartTime = configuration.ScheduleConfiguration.StartTime,
ExpiryTime = configuration.ScheduleConfiguration.ExpiryTime,
Frequency = configuration.ScheduleConfiguration.Frequency.ToString(),
Interval = configuration.ScheduleConfiguration.Interval,
IsEnabled = true,
Expand Down

0 comments on commit 1c7c155

Please sign in to comment.