SliTaz SliTaz Forum

You are not logged in.

#1 2012-11-16 16:18:34

arodulfo
Member
Registered: 2012-11-03
Posts: 71

Setting HW/System clock in SliTaz 4

Since I installed my brand new SliTaz 4 in the SBC I'm currently using for development, system time shows a bit more than 3 hours offset regarding our Spanish local time (UTC + 1, with DST).

I'd like to set both HW and System clock so that they show the correct values.

I've been using hwclock with no success. It says I have no "--set" or "--date" options.

Coming to timezones, it uses to be manage by TZ environment variable. If I echo it, I get "UTC".

I would like to properly manage it as well.

Any hint?

Thanks a lot for being there!

Offline

#2 2012-11-16 16:57:50

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Setting HW/System clock in SliTaz 4

Sync system to timeserver,sync hardware clock to system:

[c]# busybox ntpd -dnqp north-america.pool.ntp.org && hwclock -w -u[/c]

Madrid is same timezone as Paris

Set timezone:

[c]# echo "Europe/Paris" > /etc/TZ[/c]

Log out/in

Offline

#3 2012-11-16 19:42:27

arodulfo
Member
Registered: 2012-11-03
Posts: 71

Re: Setting HW/System clock in SliTaz 4

@mojo: The introduction of ntpd for time sync is brilliant, to say the least.

Thanks a lot for being there!

Kind regards,

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.025 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]