Assert-AutoShutdownSchedule 2.0.2 BST fix

If you are using this in your Azure subscription, you might want to consider a fix for BST

Around line 60

$VERSION = "2.0.2"
 
# DEAL WITH BST
$bst_on="03/27/2016 01:00:00"
$bst_off="10/30/2016 02:00:00"
 
#2015	Sunday, 29 March, 01:00	Sunday, 25 October, 02:00
#2016	Sunday, 27 March, 01:00	Sunday, 30 October, 02:00
#2017	Sunday, 26 March, 01:00	Sunday, 29 October, 02:00
#2018	Sunday, 25 March, 01:00	Sunday, 28 October, 02:00
#2019	Sunday, 31 March, 01:00	Sunday, 27 October, 02:00
...

and then around line 67

function CheckScheduleEntry ([string]$TimeRange)
{	
	# Initialize variables
	$rangeStart, $rangeEnd, $parsedDay = $null
	$currentTime = (Get-Date).ToUniversalTime()
    $midnight = $currentTime.AddDays(1).Date
 
 
	# BST	
	if($currentTime -ge $bst_on -and $currentTime -le $bst_off) {
		write-output "Adjusting $currenttime to BST"
 
		$currentTime = ($currentTime.addHours(1))
 
		write-output "BST is $currenttime"
	}	        
...

and then around line 283

# Main runbook content
try
{
    $currentTime = (Get-Date).ToUniversalTime()
 
	# BST
	if($currentTime -ge $bst_on -and $currentTime -le $bst_off) {
		write-output "Adjusting $currenttime to BST"
 
		$currentTime = ($currentTime.addHours(1))
 
		write-output "BST is $currenttime"
	}
...

Remember to publish your script after you edit it, and of course, test it !