Results 1 to 4 of 4

Thread: Getting the timezone correct

  1. #1
    Member registered user
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    67

    Getting the timezone correct

    Up to now I've been ignoring the fact that when I boot Knoppix 3.4 (2004/.5.17) the local timezone is assumed to be EDT America/NewYork. But I'm trying to get a satellite prediction program working and my timezone has to be correct.
    I have determined that my hardware clock is set to local time.
    When I boot with the cheatcode:
    Code:
    tz=America/Regina
    it makes no difference to the displayed timezone. It's still EDT but should be CST and the /etc/localtime file is also EDT.
    I've put some debugging in knoppix.sh and the TZ variable is being set to the correct zone from the tz= cheatcode but it makes no difference.

    If I do the following as superuser:
    Code:
    TZ=America/Regina
    export TZ
    hwclock -s
    the monitor goes weird until I hit a key but then the timezone has been set correctly.

    Why doesn't specifying the correct tz= cheatcode set the correct time at boot up and how do I fix it?

    Best Wishes
    Pete

  2. #2
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    Greetings from Saskatoon.
    It might be KDE using it's default instead of system setting. Try rt clk on the time display & make sure timezone is set for local time. Check also that time is correct after the rest of the world switches to daylight saving time.

  3. #3
    Member registered user
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    67
    Quote Originally Posted by CrashedAgain
    Greetings from Saskatoon.
    Greetings from Saskatoon to you too I was only using America/Regina because there's no America/Saskatoon option.

    It might be KDE using it's default instead of system setting.
    I set the correct date/time and timezone and then saved configs, which saves /etc/localtime. That combined with specifying tz=America/Regina at the boot prompt should set the correct date/time and timezone but it doesn't.
    The date program shows local time (CST) as two hours too early. Something is still forcing EDT when it boots and I can't find it.

    Try rt clk on the time display & make sure timezone is set for local time.
    It is set for local time but that only affects how the clock is interpreted.
    When I'm using the satellite prediction software the thing that counts is that the date program prints out the correct date/time and timezone because it uses the same system calls to get the date/time as the prediction software.

    Best Wishes
    Pete

  4. #4
    Member registered user
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    67

    Found the problem (was - Getting the timezone correct)

    There is a bug in the way that the /etc/knoppix-autoconfig script handles the tz cheatcode.
    It does not read that cheatcode, and set TZ from it, until after the system clock has been set with the hwclock command.
    This block of code:
    Code:
    KTZ="$(getbootparam tz 2>/dev/null)"
    [ -f "/usr/share/zoneinfo/$KTZ" ] && TZ="$KTZ"
    rm -f /etc/localtime
    cp "/usr/share/zoneinfo/$TZ" /etc/localtime
    should be moved before this block of code:
    Code:
    # hwclock uses the TZ variable
    export TZ
    hwclock $UTC -s
    so that the tz= cheatcode will override whatever timezone default was set by the lang= cheatcode.

    Best Wishes
    Pete (now definitely on CST

Similar Threads

  1. Knoppix HD autoconfiguration (timezone)
    By pavel7nl in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 06-11-2005, 09:57 PM
  2. HELP! won't write to correct partition
    By doclalor in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 04-11-2005, 10:40 AM
  3. Correct name for App Run file?
    By lilsirecho in forum Klik
    Replies: 4
    Last Post: 01-07-2005, 01:44 AM
  4. system timezone setting: more 'knoppix-like' suggestions?
    By olivers in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 10-24-2004, 10:07 PM
  5. Is my KNOPPIX CD correct?
    By alex+ in forum General Support
    Replies: 3
    Last Post: 12-26-2003, 06:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES

$174.99



HP PROLIANT MICROSERVER MICRO SERVER HSTNS-5151 T4 Used. picture

HP PROLIANT MICROSERVER MICRO SERVER HSTNS-5151 T4 Used.

$45.00



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS picture

Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS

$199.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$846.19



SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD picture

SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD

$90.00



Supermicro 5018A-FTN4 Rack Server - Black picture

Supermicro 5018A-FTN4 Rack Server - Black

$125.00



2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture

2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL

$299.00



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00