System / Date Setup via Internet at Startup
Topic: System / Date Setup via Internet at Startup
started by: kk75
Posted by kk75 on Nov. 03 2007,11:26Hello,
in the system menu i found this item "Set Date / Time via Internet".
I would like to add this script to the startup script. Where can I find the command
for starting this time update script ?
Posted by Juanito on Nov. 03 2007,11:44From /home/dsl/.fluxbox/menu:
Posted by danielp on Nov. 05 2007,13:19Just found this thread; interesting!
When you do sudo /usr/local/bin/gettime.lua you get the time back in UTC format. Is there a way to make a script to change the PC's time as well? Where is the timezone saved?
Posted by Zucca on Nov. 05 2007,13:26< Try this >. ;)
Posted by roberts on Nov. 05 2007,15:34
The timezones supported in DSL can be found in /usr/share/zoneinfo
To use local time just boot with the tz boot option set to a supported timezone. For example, I use
Combing this boot option and the gettime.lua you will have accurate local time set.
Posted by danielp on Nov. 05 2007,19:59Not sure I understood you well Robert. If I boot with tz=Paris (in my case), then add the line
in bootlocal.sh I should be able to automatically get the time set on the machine on each boot?
Strangely, it does set the time, but not in the right timezone
In my example, it's now 21:00 and it set my time to 15:00, so 6 hours late.
Posted by roberts on Nov. 05 2007,20:34Try tz=Europe/Paris
Posted by danielp on Nov. 05 2007,20:51Great, that did it! Thanks (as always)