timezone info is forgotten at reboot

Bug #308983 reported by Amit Shah
4
Affects Status Importance Assigned to Milestone
tzdata (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

My timezone is +0530 UTC. I store my local time in the BIOS. After upgrading from hardy to intrepid, my time always runs +0530 faster than my local time zone, making it in effect +1100 UTC.

Even after configuring the time with the 'date' command, this doesn't stay between reboots.

Revision history for this message
tscott (tescott425) wrote :

I am encountering a similar problem. I'm running Ubuntu 8.10 off of a pendrive (with persistent data enabled). Here are the steps / symptoms I'm seeing:

1) Set up the timezone, etc. and see the correct date/time reported on the toolbar. My timezone is "America/North_Dakota/Center". I've used "sudo dpkg-reconfigure tzdata" to set my timezone, and have confirmed that "/etc/timezone" matches my setting. Doing a 'diff -s /etc/localtime /usr/share/zoneinfo/`cat /etc/timezone`' indicates no difference (as expected).

2) Reboot.

3) The date/time on the panel bar now reads +0600 hours local time (local time = 9PM CST, panel bar time = 3AM") On the command-line 'date' similarly reads UTC instead of CST.

4) Go to System > Administration > Time And Date

5) "Time Zone" now is blank. In step 1) above, I had set it to America/North_Dakota/Center". /etc/timezone is still correct. However, 'diff -s /etc/localtime /usr/share/zoneinfo/`cat /etc/timezone`' now indicates a difference - this is unexpected. Doing a 'diff -s /etc/localtime /usr/share/zoneinfo/UTC' shows an identical match.

I'm guessing that something at either power-down or boot-up is forcefully updating /etc/localtime. Might be simply a matter of figuring out what and why.

Revision history for this message
tscott (tescott425) wrote :

Not a very elegant fix, but I can correct my problem if I copy the correct zoneinfo over from within /etc/rc.local. Example:

cp /usr/share/zoneinfo/America/North_Dakota/Center /etc/localtime

This works for me.

Revision history for this message
Yaron (sh-yaron) wrote :

The /etc/localtime trick is the way to go, is this still happening?

Revision history for this message
Benjamin Drung (bdrung) wrote :

Nowadays /etc/localtime is a symlink to the timezone data in /usr/share/zoneinfo. Do you still see the same problem with recent Ubuntu version or was it fixed since then?

Changed in tzdata (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tzdata (Ubuntu) because there has been no activity for 60 days.]

Changed in tzdata (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.