Order of the Butterfly
Posts: 472 from 2006/2/23
From: the Planet of ...
"SetClockNTP ?" will give you all the options, including SERVER, but switching the server will not help. I use a simple script to manually switch between CET/CEST. Of course you need to adjust UTCDIFF to your timezone. WaitX part is needed only if you want to update your time each hour etc.
S:User-Network-Startup
Code:
Run >NIL: SetClockNTP UTCDIFF=120 SAVE
S:Time_CET
Code:
bin:sed -i "s/SetClockNTP UTCDIFF=120 SAVE/SetClockNTP UTCDIFF=60 SAVE/" S:User-Network-Startup
Break `Status COM WaitX`
SetClockNTP UTCDIFF=60 SAVE
Run >NIL: WaitX H=1 L=0 "SetClockNTP UTCDIFF=60 SAVE"
S:Time_CET
Code:
bin:sed -i "s/SetClockNTP UTCDIFF=60 SAVE/SetClockNTP UTCDIFF=120 SAVE/" S:User-Network-Startup
Break `Status COM WaitX`
SetClockNTP UTCDIFF=120 SAVE
Run >NIL: WaitX H=1 L=0 "SetClockNTP UTCDIFF=120 SAVE"
http://korni.ppa.pl/modkowypaczek/ | My Rifle, My Bunny, and Me