You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working with @Rtistx on this, should be a quick fix.
Issue is that if you do not specify a Start and/or End time when updating a Calendar event with Update-GSCalendarEvent, it will set the start time as the time the command was run and the end time 30 minutes after that point due to the parameters LocalStartTime and LocalEndTime having the same default values as New-GSCalendarEvent
#### 2.7.1
* Fixed: `Update-GSCalendarEvent` had default values set for LocalStartDateTime and LocalEndDateTime parameters, causing those to always update the event unexpectedly if a start and/or end datetime was not passed when running the command ([Issue #59](#59))
Working with @Rtistx on this, should be a quick fix.
Issue is that if you do not specify a Start and/or End time when updating a Calendar event with
Update-GSCalendarEvent
, it will set the start time as the time the command was run and the end time 30 minutes after that point due to the parametersLocalStartTime
andLocalEndTime
having the same default values asNew-GSCalendarEvent
Code that needs updating is here:
https://github.com/scrthq/PSGSuite/blob/master/PSGSuite/Public/Calendar/Update-GSCalendarEvent.ps1#L104..L107 (needs to have the default values removed)
https://github.com/scrthq/PSGSuite/blob/master/PSGSuite/Public/Calendar/Update-GSCalendarEvent.ps1#L183 (needs to be changed to an
elseif
statement)https://github.com/scrthq/PSGSuite/blob/master/PSGSuite/Public/Calendar/Update-GSCalendarEvent.ps1#L198 (needs to be changed to an
elseif
statement)The text was updated successfully, but these errors were encountered: