From 0e02a990cdadb5e2a666152521e2e3e6c53bf732 Mon Sep 17 00:00:00 2001 From: Gijs Reijn Date: Fri, 15 Nov 2024 09:49:26 +0100 Subject: [PATCH] Minor change --- .../Microsoft.Windows.Setting.Time.psm1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/Microsoft.Windows.Setting.Time/Microsoft.Windows.Setting.Time.psm1 b/resources/Microsoft.Windows.Setting.Time/Microsoft.Windows.Setting.Time.psm1 index 0825fb1..46903e8 100644 --- a/resources/Microsoft.Windows.Setting.Time/Microsoft.Windows.Setting.Time.psm1 +++ b/resources/Microsoft.Windows.Setting.Time/Microsoft.Windows.Setting.Time.psm1 @@ -87,8 +87,7 @@ class TimeZone { } [TimeZone] Get() { - $currentState = [TimeZone]::New() - $currentState.TimeZone = (Get-TimeZone).Id + $currentState = [TimeZone]::new() $currentState.SetTimeZoneAutomatically = [TimeZone]::GetTimeZoneAutoUpdateStatus() $currentState.AdjustForDaylightSaving = [TimeZone]::GetDayLightSavingStatus()