LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-12-2007, 03:06 PM   #1
infoseeker
LQ Newbie
 
Registered: Dec 2005
Location: South Africa
Distribution: Debian Squeeze KDE version
Posts: 8

Rep: Reputation: 0
My time is off - Elive Installed


I recently installed Elive (2.6.18-elive #2 SMP PREEMPT Sat Jan 6 00:41:56) and the only real issue I have is that the time is out. I set the correct time zone on install (Africa, Johannesburg) but the displayed time (gdesklets/bash prompt,etc) is 2 hours ahead of current time. I checked the CMOS time on bootup and set that correctly. The only way I get the time correct to is to select an incorrect timezone. If I use the correct timezone and set the time correctly, then my Ubuntu/CMOS shows the incorrect time (2 hours out). Any ideas?

P.S. Elive is 'unstable', which could be a reason?

I'm Having a great time with Enlightenment otherwise - quite impressive is E17, and a whole lot prettier than KDE or Gnome Found the distro on recent LinuxFormat magazine DVD.

Last edited by infoseeker; 06-12-2007 at 03:50 PM.
 
Old 06-13-2007, 08:31 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Haven't used elive (or ubuntu for that matter) but:

Timezone files in Linux are typically in /usr/share/zoneinfo.

The default timezone is usually /etc/localtime (this can be a copy of or a link to one of the files in /usr/share/zoneinfo).
You can check for whether this is a symbolic link simply by doing an "ls -l /etc/localtime". If an slink it will show to which file it is linked. If it is not an slink doing "cksum /etc/localtime" and "cksum usr/share/zoneinfo/Africa/Johannesburg" would help. If they have the same cksum then you know /etc/localtime is a copy of what you think.

You can find out what is in a zoneinfo file by running "zdump <zonefile>". The zoneinfo files change on occasion (as for example this year most of the ones for America changed due to earlier start and later end of daylight saving time). If you're running a 2.6 kernel and elive uses standards it likely has up to date zoneinfo files but it never hurts to check.

Additionally there is a TZ variable that can be set that will override the default timezone. After you login type "echo $TZ" to see if this is set. If it is you'd need to examine startup files (/etc/profile, /etc/bashrc, $HOME/.profile, $HOME/.bashrc) to see if any of them are setting the value.

Finally:
date = system time
hwclock = hardware clock time

Once you've set the date/time using the date command (and verified you have the right timezone) use hwclock --systohc to set the hwclock to have same underlying time as the system. Note that the system ALWAYS stores time as UTC - timezone setting affects how you see the time but the underlying time is actually UTC.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Elive venomblade Linux - Networking 2 04-08-2007 01:17 AM
Hi. Just installed linux for first time! ryanryan LinuxQuestions.org Member Intro 3 04-02-2007 07:20 PM
ELive freedomcore Linux - Distributions 6 10-18-2006 12:01 PM
installed for the first time fuelinjection Ubuntu 4 11-20-2005 03:06 AM
I installed Linux (first time)!! Now for the sound problem... Raskall Slackware 15 01-17-2003 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration