Skip to content

Commit 1c7c155

Browse files
dmohantaDebashish Mohanta
andauthored
[Automation] Fixed time zone issue while creating an update deployment schedule (#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]>
1 parent 21a7a7d commit 1c7c155

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Automation/Automation/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

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

2627
## Version 1.5.1
2728
* Fixed te issue that complex object cannot be serialized correctly. [#14431]

src/Automation/Automation/Common/AutomationPSClientSoftwareUpdateConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public SoftwareUpdateConfiguration CreateSoftwareUpdateConfiguration(string reso
8181
{
8282
ScheduleInfo = new Sdk.ScheduleProperties()
8383
{
84-
StartTime = configuration.ScheduleConfiguration.StartTime.ToUniversalTime(),
85-
ExpiryTime = configuration.ScheduleConfiguration.ExpiryTime.ToUniversalTime(),
84+
StartTime = configuration.ScheduleConfiguration.StartTime,
85+
ExpiryTime = configuration.ScheduleConfiguration.ExpiryTime,
8686
Frequency = configuration.ScheduleConfiguration.Frequency.ToString(),
8787
Interval = configuration.ScheduleConfiguration.Interval,
8888
IsEnabled = true,

0 commit comments

Comments
 (0)