LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-29-2008, 09:25 PM   #1
stl1859
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Rep: Reputation: 0
help with timezone question - Kubuntu 8.10


I recently created myself a USB bootable version of Kubuntu 8.10 using instructions from this website --> http://www.pendrivelinux.com/

So far I am happy with it - but a timezone issue is driving me nuts - I'd appreciate if someone would clear it up for me.

I have my hardware clock set to UTC. However, I want my system timezone to be EST. So when I boot up the system, the 'date' command shows the time in UTC. I can now do a "dkpg-reconfigure tzdata" and change the timezone to "America/New_York". Now the date command shows the correct time in EST. So far so good.

My problem is - when I reboot the system, it is back to UTC again. The effect of the reconfigure is wiped out. The dkpg-reconfigure updates the /etc/localtime with /usr/share/zoneinfo/America/New_York - but the reboot reverts this change and I am back to UTC. The time is showing correctly, but for the wrong timezone.

What am I doing wrong here ? I am basically looking for the process that is restoring the timezone to UTC on startup. I can see a script that copies the time from the hardware clock to the system time, but that should not copy the timezone, should it ? I have already told the system that the hardware clock is set to UTC and I was simply expecting it to recognize that the HW clock is at UTC and the system clock needs to be at EST and adjust accordingly.

The key is that the /etc/localtime change is reverted. If I simply put a manual "cp /usr/share/zoneinfo/America/New_York /etc/localtime" in rc.local, then I am good. But my question is - shouldn't the change persist ?

Any pointers would be deeply appreciated - thanks
 
Old 12-30-2008, 02:23 AM   #2
rob33n
Member
 
Registered: May 2007
Location: Turkey
Distribution: Debian, Windows
Posts: 134

Rep: Reputation: 16
sudo nano /etc/default/rcS
If UTC=yes change it UTC=noi then save and close. We need to change timezone for localtime.
Type su and be root.
rm /etc/localtime
ln -s /usr/share/zoneinfo/Your_Zone /etc/localtime
Set time date -s "date and time"
It was really irritating for me. I found a solution. Also it works on debian etch.
 
Old 12-30-2008, 06:53 AM   #3
stl1859
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
unfortunately I have already tried that and failed - that was purpose of the post

Quote:
Originally Posted by rob33n View Post

sudo nano /etc/default/rcS
If UTC=yes change it UTC=noi then save and close.
Like I said , my HW clock is set to UTC and that is how I want it. It is the timezone of the system clock that I want to change.


Quote:
Originally Posted by rob33n View Post

We need to change timezone for localtime.
Type su and be root.
rm /etc/localtime
ln -s /usr/share/zoneinfo/Your_Zone /etc/localtime
Like I have already said - even if I do this [BTW this is precisely what 'dpkg-reconfigure tzdata' will do] , with every reboot , /etc/localtime is back to UTC - that is problem I need help with
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kubuntu question myzery Linux - Newbie 9 09-22-2007 09:03 AM
question about setting the timezone and time willyweedle Linux - Newbie 1 03-30-2007 11:12 AM
Kubuntu Timezone Problem SoCalNewbie Linux - Newbie 7 04-02-2006 09:07 PM
Yet another question; TimeZone related MasterC Linux From Scratch 6 06-11-2002 03:56 AM
Really Lame Timezone question Supp0rtLinux Linux - General 0 04-08-2002 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:49 PM.

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