On August 8, 2022, the Chilean government made an official announcement about a Daylight Saving Time (DST) time zone change. Starting at 12:00 a.m. Saturday, September 10, 2022 until 12:00 a.m. Satur...
Muchas gracias a todos por su apoyo. Hoy revisando el comentario de Ale_Jin me di cuenta que en mis equipos no se mostraba bien el cambio mediante el comando w32tm /tz, sino que seguía apareciendo el valor original (M:9 D:1 DoW:6). A pesar que el ícono de reloj sí dice que la hora se modificará el 11 de septiembre a las 00hrs.
Luego de aplicar los cambios según lo comentado por JAbarca y Ale_Jin y aplicar un reinicio, ahora sí muestra la información correcta con el comando w32tm /tz.
Al parecer es necesario incluir los años anteriores en el registro para que se muestre correctamente.
Le hice ajustes al script de powershell para ejecutarlo, lo comparto por si alguien le sirve.
En este caso estoy haciendo rollback del cambio al registro 2019, y agregando los demás.
#Obtiene el valor de LastEntry actual del computador
$CLTKey=Get-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Pacific SA Standard Time\Dynamic DST'
$LEYear=$CLTKey.LastEntry
#Obtiene el año actual
$currentyear=get-date -Format yyyy
$currentyear = [int]$currentyear
#Eejcuta un ciclo, crea un registro por cada año que falta.
#Solo para el año actual (2022) el registro es diferente.
for($i = $LEYear; $i -le $currentyear; $i++){
if($i -eq $currentyear){$ModValue = "f0,00,00,00,00,00,00,00,c4,ff,ff,ff,00,00,04,00,06,00,01,00,17,00,3b,00,3b,00,e7,03,00,00,09,00,06,00,02,00,17,00,3b,00,3b,00,e7,03"}
else {$ModValue = "f0,00,00,00,00,00,00,00,c4,ff,ff,ff,00,00,04,00,06,00,01,00,17,00,3b,00,3b,00,e7,03,00,00,09,00,06,00,01,00,17,00,3b,00,3b,00,e7,03"}
$hexValue = $ModValue.Split(',') | % { "0x$_"}
$regYear = $i.ToString()
Set-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Pacific SA Standard Time\Dynamic DST' `
-Name $regYear `
-Value ([byte[]]$hexValue) `
-Type Binary -Force -ea SilentlyContinue;
}
#CAmbia Last Entry
Set-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Pacific SA Standard Time\Dynamic DST' `
-Name LastEntry `
-Value $currentyear `
-Type DWord -Force -ea SilentlyContinue;