WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Setting timezone [solved]  (Read 5141 times)

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
Setting timezone [solved]
« on: May 16, 2011, 10:22:20 AM »
Hi,

I can't seem to get my head around how to set the time zone for my 3.6 TC install.

The way I use TC is that it boots (restores nothing - no backup) and then I run a script that installs all my applications and config files.

Initially TC boots up with UTC time but I need to change it to WST-8 for my squeezeboxserver application which displays date, time and alarm on the remote squeezebox players.
Squeezebox server expects the time to be local time for the date/time and alarm to function correctly.

I have tried adding the following to my script but it does not work.

TZ='WST-8'
export TZ

When I type this in on the terminal window it updates the time in that terminal only. Applications and DateTool still report original UTC time.

Do I need to install tzdata.tcz to acheive what I want? I would prefer not to use this if possible as it requires console input.

Thanks.
« Last Edit: May 17, 2011, 05:45:53 AM by b1ackmai1er »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Setting timezone
« Reply #1 on: May 16, 2011, 10:27:09 AM »
Try the tz bootcode (tz=WST-8)
The only barriers that can stop you are the ones you create yourself.

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
Re: Setting timezone
« Reply #2 on: May 16, 2011, 10:38:43 AM »
Hi Curaga,

I have problems booting from my PC.  I boot from usb key. It takes about 5 minutes and a boot command line is not displayed during this process so I cannot enter the command in.
This is the only way I could get my machine to boot from usb using the HD/USB install script in Control Panel.

Any other way? Will try a remaster with WST-8 in the boot command line if I have to but dread setting up my usb key again!

Regards b1ackmai1er


Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Setting timezone
« Reply #3 on: May 16, 2011, 11:06:43 AM »
open the terminal and type

sudo editor

Open /mnt/sda1/boot/extlinux/extlinux.conf

If not using sda1, use the appropriate partition.

in the line beginning with

APPEND initrd=/boot/tinycore.gz quiet

include the bootcode.


Then it depends on which options you chose when installing Tiny Core.

It may be syslinux, instead of extlinux. If you look, you should find it.
« Last Edit: May 16, 2011, 11:13:24 AM by Guy »
Many people see what is. Some people see what can be, and make a difference.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Setting timezone
« Reply #4 on: May 16, 2011, 11:11:53 AM »
Quote
It takes about 5 minutes and a boot

I don't know what type of computer you have.

If it has a hard drive, you would be better installing it on the hard drive.
Many people see what is. Some people see what can be, and make a difference.

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
Re: Setting timezone [solved]
« Reply #5 on: May 17, 2011, 05:49:46 AM »
Hi Guy, Curuga that worked a treat. Thanks.

I had no idea it was so easy to edit the command line options either.

Thanks