Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143296 - Setting timezone incorrect
Summary: Setting timezone incorrect
Status: RESOLVED DUPLICATE of bug 127899
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-09 00:21 UTC by Ooblick
Modified: 2011-10-31 14:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ooblick 2006-08-09 00:21:01 UTC
Section 7a - Timezone states that to set the timezone you should use

# ls /usr/share/zoneinfo
(Suppose you want to use GMT)
# cp /usr/share/zoneinfo/GMT /etc/localtime

Surely this is wrong. The correct method would be:

# ls /usr/share/zoneinfo
(Suppose you want to use GMT)
# ls -sf /usr/share/zoneinfo/GMT /etc/localtime

The use of a symlink here is important: timezone information in /usr/share/zoneinfo can and will get updated (for example, the information for Australia/NSW changed at least twice last year as legislators moved the start of daylight savings for the Commonwealth Games). If there is a copy of the file at /etc/localtime any updates in /usr/share/zoneinfo will not take effect causing problems when daylight savings changes.
Comment 1 Shyam Mani (RETIRED) gentoo-dev 2006-08-09 00:32:48 UTC
True, but the downside of linking, is that we've had users with seperate /usr partitions and if the partition fails to mount for some reason, we would have wrong timestamps all over the place when the system comes up or tries to.

Look at http://sources.gentoo.org/, we've had ln -sf before and then changed to cp for the above reasons.

As far as I can see, we're not going to be making this change.
Comment 2 Jan Kundrát (RETIRED) gentoo-dev 2006-08-09 02:43:57 UTC
Reopening for a proper resolution
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2006-08-09 02:44:20 UTC

*** This bug has been marked as a duplicate of 127899 ***
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-10-31 14:42:04 UTC
*** Bug 389091 has been marked as a duplicate of this bug. ***