SliTaz SliTaz Forum

You are not logged in.

#1 2012-03-25 11:04:15

Alexbn
Member
Registered: 2012-03-08
Posts: 37

Setting time

What is the method for setting the time?

I need to set the clock one hour forward as we now have Daylight Saving time in Norway.

I'm running SliTaz 3.0.

Offline

#2 2012-03-25 11:57:14

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Re: Setting time

Run tazctrlbox as root then -> Time -> Sync online -> Set from system

I think, there's also a "Control Box" entry somewhere in the main menu which starts tazctrlbox, too. The last step "Set from system" is phrased somewhat unclearly ... "Set hardware clock" would have been a better description of the function.

Offline

#3 2012-03-25 13:53:21

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Setting time

It's under "Start"---> System Tools---> Control Box and it starts as root by default.

You also may have to install glibc-locale to get a larger range of regions to pick from which you can see in /usr/share/zoneinfo - directories get added before the city like this: Africa/Johannesburg

Offline

#4 2012-03-25 15:08:45

Alexbn
Member
Registered: 2012-03-08
Posts: 37

Re: Setting time

In SliTaz control box, under the "Time" tab, we have

System time     Sun Mar 25 11:47:54 UTC 2012                   * Sync online

Hardware time   Sun Mar 25 10:47:54 2012  0.000000 seconds     * Set from system

Timezone        UTC-1                                          -> Change

The only field I can change is where it says UTC-1, which I've changed to Europe/Copenhagen (same time zone/DST as Oslo).

Offline

#5 2012-03-25 15:13:49

Alexbn
Member
Registered: 2012-03-08
Posts: 37

Re: Setting time

Upoon reboot, time was 2 hours off instead of one, but then wrote UTC-2, which worked (after reboot), and it's now showing the correct time.

Offline

#6 2012-03-29 19:59:07

garyjmellor
Member
Registered: 2012-03-13
Posts: 18

Re: Setting time

I need to change my system time too but I don't have Control Box here: Start---> System Tools---> Control Box. I'm running v4.0 RC3 - how can I change the time....it's one hour behind. Thank you.

Offline

#7 2012-03-29 20:13:54

aniguenni
Member
Registered: 2011-12-18
Posts: 153

Re: Setting time

on 4.0-RC3 you'll find sthg. like this:

start ---> setup ---> time zone configuration

become root and change the time settings to your needs. afterwards reboot.

hopefully i'm right, because i didn't try it myself.

Offline

#8 2012-03-29 21:21:55

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

Re: Setting time

Slitaz-4.0

Applications/Preferences/Time Zone configuration

Right click desktop/Choose Logout/Close X session: exit/OK

Login as tux,root,etc.

Time will be correct if you choose the correct timezone.

Reboot is not necessary.

Offline

#9 2012-03-29 21:35:00

plumtreed
Member
Registered: 2011-03-29
Posts: 115

Re: Setting time

In my case, I was offered a limited selections of locales which didn't include Australia. I followed trixar_za suggestion and installed additional locales via 'glibc-locale' using  System Tools> Package Manager. Then as Mojo says!

Offline

#10 2012-03-30 22:24:29

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Setting time

still in 3.0: is there a command line to automate the procedure at startup ? (instead of having to open controlbox each time...)

Tx

Offline

#11 2012-03-30 22:56:40

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

Re: Setting time

Depends on the type of installation you have.

Full install /etc/TZ is persistent.

Frugal install with persistent /home pack it with [c]tazpkg repack-config[/c],place config-1.0.tazpkg in /home/boot/packages folder so it auto-installs on boot.

[c]tazusb writefs gzip[/c] is another way to save it.

How to run scripts and unpack/install gzipped files with boot code options :

http://doc.slitaz.org/en:guides:frugal Tuning the boot process

Offline

#12 2012-03-30 23:15:30

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Setting time

tazusb does not work for me (i get a kernel panic when booting)

this is a full install, but I am confused.

I set /etc/TZ to Europe/Paris

When i start slitaz there is always 2 hours in advance (one hour in winter)and i need to sync it to make it work, or to modify /etc/TZ to go 2 timezone after (works, but not really clean of course)

Am I the only one to have this problem ?

Offline

#13 2012-03-31 00:23:09

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

Re: Setting time

The timezone set in /etc/TZ is based on running the motherboard hardware clock set to UTC

If you multiboot windows on the same motherboard windows sets the hardware clock to real time which in your situation is Paris time.

Which may explain why your software clock is 2 hours ahead of real time since the current (CEST)Paris time is 2 hours ahead of UTC. Let windows control the hardware clock at real time and set /etc/TZ to UTC so there is no offset between hardware and software clock. Software clock will then display realtime which is what windows sets the hardware clock to.

If it's not a windows dual boot issue make sure the hardware clock is set to UTC.

Offline

#14 2012-03-31 02:02:05

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Setting time

ok, i will experiment a little bit with it.

Tx

Offline

#15 2012-06-16 21:27:03

Guest
Guest

Re: Setting time

I'm having the same issue. On other Linux systems this setting is stored in /etc/sysconfig/clock, but there's no such file on Slitaz.

Isn't there any method of telling Slitaz that the hardware clock is already set to local time instead of UTC ?

#16 2012-06-16 23:12:57

shruken
Member
Registered: 2012-05-10
Posts: 21

Re: Setting time

added as time zone Bogota Colombia?

and add a new time zone?

and add it to Colombia?

as I put the 12 hours?

Offline

#17 2012-06-17 10:10:48

Guest
Guest

Re: Setting time

Hi, shruken.

Not sure I undestand what you mean... Would you please elaborate on your issue?

#18 2012-07-15 21:17:21

lfever
Member
Registered: 2011-10-17
Posts: 7

Re: Setting time

When I first installed Slitax 4.0 the displayed time was correct. The next day when I booted up the time was again correct. After a couple of reboots the time was displayed with the incorrect time. I did the following:

per/mojo

Slitaz-4.0

Applications/Preferences/Time Zone configuration

Right click desktop/Choose Logout/Close X session: exit/OK

Login as tux,root,etc.

Time will be correct if you choose the correct timezone.

Reboot is not necessary.

The time was still incorrect and no matter what time locale I choose doesn't change the time at all! Any help would be greatly appreciated.

Offline

#19 2012-07-15 21:53:16

lfever
Member
Registered: 2011-10-17
Posts: 7

Re: Setting time

Please disregard my previous post. Problem is solved smile

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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