Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo time and timezone problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Mon May 16, 2011 1:18 am    Post subject: Gentoo time and timezone problem Reply with quote

i have never been able to set this the right way... since i ever started to use gentoo.

i tried using ntpd, setting my time with date command, it just does not show the right time. i am ET. i followed the installation instructions but i never get the right time, i am 5 hours behind now.
Code:
localhost bobby # cat /etc/conf.d/clock
TIMEZONE="America/Menominee"
CLOCK="local"

Code:
localhost bobby # cat /etc/ntpd.conf
# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)

# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1

# sync to a single server
#server ntp.example.org

# use a random selection of 4 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
# and http://www.pool.ntp.org/
#server 0.gentoo.pool.ntp.org
#server 1.gentoo.pool.ntp.org
#server 2.gentoo.pool.ntp.org
#server 3.gentoo.pool.ntp.org
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

any ideas?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 12235

PostPosted: Mon May 16, 2011 4:04 am    Post subject: Reply with quote

What is the output of (unset TZ; date)?
Back to top
View user's profile Send private message
Frustie
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2007
Posts: 101
Location: My own little planet.

PostPosted: Mon May 16, 2011 7:14 am    Post subject: Reply with quote

did you
Code:

cp /usr/share/zoneinfo/America/Menominee /etc/localtime

_________________
A scarf tied to a post is quickly shredded by the wind but, a loose leaf in the wind can survive a typhoon.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6573

PostPosted: Mon May 16, 2011 7:43 am    Post subject: Reply with quote

http://www.gentoo.org/doc/en/openrc-migration.xml wrote:

Clock

Clock settings have been renamed from /etc/conf.d/clock to your system's native tool for adjusting the clock. This means on Linux it will be /etc/conf.d/hwclock and on FreeBSD it will be /etc/conf.d/adjkerntz. Systems without a working real time clock (RTC) chip should use /etc/init.d/swclock, which sets the system time based on the mtime of a file which is created at system shutdown. The initscripts in /etc/init.d/ have also been renamed accordingly, so make sure the appropriate script for your system has been added to the boot runlevel.

Additionally, the TIMEZONE variable is no longer in this file. Its contents are instead found in the /etc/timezone file. If it doesn't exist, you will of course have to create it with your timezone. Please review both of these files to ensure their correctness.

The proper value for this file is the path relative to your timezone from /usr/share/zoneinfo. For example, for someone living on the east coast of the United States, the following would be a correct setting:

Code Listing 2.12: /etc/timezone

America/New_York



ps: if you miss it, it's hwclock & /etc/timezone now
Back to top
View user's profile Send private message
Qu4rk
n00b
n00b


Joined: 22 Mar 2005
Posts: 74

PostPosted: Mon May 16, 2011 3:43 pm    Post subject: Reply with quote

Anyway to update the install docs with this?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 12235

PostPosted: Tue May 17, 2011 12:17 am    Post subject: Reply with quote

File a bug to the documentation group.
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Sat Jun 04, 2011 5:00 pm    Post subject: Reply with quote

thank you, that did it, the openrc migration step.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum