Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

time off by five hours

Have an x86-64 problem? Post here.
Locked
Advanced search
17 posts • Page 1 of 1
Author
Message
n3x
Apprentice
Apprentice
Posts: 247
Joined: Mon Apr 14, 2003 6:53 pm
Location: Kingston, Ontario (uni) Westport, CT (home)

time off by five hours

  • Quote

Post by n3x » Tue Mar 22, 2005 11:20 pm

Every time I reboot my computer, the time is slow by five hours (exactly). Now I'm EST (GMT -5), so I thought that might be the problem, but date shows me as EST and /usr/share/zoneinfo is pointing to the right place. I would appreciated any ideas :D

Thanks,
james
Top
acasto
Apprentice
Apprentice
User avatar
Posts: 236
Joined: Fri Feb 06, 2004 11:04 pm
Location: Durka-Durka-Stan

  • Quote

Post by acasto » Tue Mar 22, 2005 11:29 pm

Check /etc/rc.conf, I had something like that once and had to set the time to Local instead of UTC


- Adam
Leerrroooooyyyyyyyy JENKINS!!!!1111...................

"You know the Nazi's had pieces of flare.. that they made the Jews wear."
Top
n3x
Apprentice
Apprentice
Posts: 247
Joined: Mon Apr 14, 2003 6:53 pm
Location: Kingston, Ontario (uni) Westport, CT (home)

  • Quote

Post by n3x » Tue Mar 22, 2005 11:58 pm

I had a look in rc.conf, but there's no time option. Should there be? Perhaps it magically disappeared...

Cheers,
james
Top
acasto
Apprentice
Apprentice
User avatar
Posts: 236
Joined: Fri Feb 06, 2004 11:04 pm
Location: Durka-Durka-Stan

  • Quote

Post by acasto » Wed Mar 23, 2005 12:00 am

The variable should be CLOCK


- Adam
Leerrroooooyyyyyyyy JENKINS!!!!1111...................

"You know the Nazi's had pieces of flare.. that they made the Jews wear."
Top
n3x
Apprentice
Apprentice
Posts: 247
Joined: Mon Apr 14, 2003 6:53 pm
Location: Kingston, Ontario (uni) Westport, CT (home)

  • Quote

Post by n3x » Wed Mar 23, 2005 12:04 am

Nope, no such thing. I stuck a CLOCK="utc" at the end of the file. We'll see if that works.

EDIT:: seems to be working after a quick reboot, thanks a bunch.
Top
acasto
Apprentice
Apprentice
User avatar
Posts: 236
Joined: Fri Feb 06, 2004 11:04 pm
Location: Durka-Durka-Stan

  • Quote

Post by acasto » Wed Mar 23, 2005 12:08 am

hmmmm... I'm not sure. I'm not using amd64 so maybe something with the profile. Either way here's the snippet from my rc.conf file that shows that:

Code: Select all

# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time).  If your clock is set to the local time, then set CLOCK
# to "local".  This setting is used by the /etc/init.d/clock script.

#CLOCK="local"


edit: okay, glad it's working :)


- Adam
Leerrroooooyyyyyyyy JENKINS!!!!1111...................

"You know the Nazi's had pieces of flare.. that they made the Jews wear."
Top
taurus
l33t
l33t
User avatar
Posts: 657
Joined: Tue Sep 21, 2004 1:23 pm
Location: I need to be somewhere...

  • Quote

Post by taurus » Wed Mar 23, 2005 2:16 am

Yes, there is that option "CLOCK" in AMD64 because I am looking at it right now... :wink: The default is set to UTC so that's why you are 5 hours off!

taurus
Top
n3x
Apprentice
Apprentice
Posts: 247
Joined: Mon Apr 14, 2003 6:53 pm
Location: Kingston, Ontario (uni) Westport, CT (home)

  • Quote

Post by n3x » Wed Mar 23, 2005 3:06 am

Hm, well that's very strange that mine seems to have disappeared. Oh well, at least it seems to be working right now...
Top
syg00
l33t
l33t
Posts: 907
Joined: Mon Aug 23, 2004 5:30 am
Location: Brisbane, AUS

  • Quote

Post by syg00 » Wed Mar 23, 2005 7:30 am

etc-update ???.
Top
gringo
Advocate
Advocate
User avatar
Posts: 3793
Joined: Sun Apr 27, 2003 10:25 am

  • Quote

Post by gringo » Wed Mar 23, 2005 8:50 am

maybe you have one of latest baselayouts ( unstable )... location has changed to /etc/conf.d/clock ;)
Old conf in /etc/rc.conf still works of course !

cheers
Error: Failing not supported by current locale
Top
n3x
Apprentice
Apprentice
Posts: 247
Joined: Mon Apr 14, 2003 6:53 pm
Location: Kingston, Ontario (uni) Westport, CT (home)

  • Quote

Post by n3x » Wed Mar 23, 2005 12:51 pm

Aha - /etc/conf.d/clock seems to be the issue. However, it is set to UTC (and I assume always has been) yet my problem was only fixed when I added the line to rc.conf...
Top
Zyne
Guru
Guru
Posts: 334
Joined: Tue Jun 08, 2004 12:16 pm

  • Quote

Post by Zyne » Wed Mar 23, 2005 2:10 pm

a better solution (imho) would be to use a ntp-server to set your computer clock...
That's how I do it anyways ;)
works great for all my workstations, and they all have the same time...

just a tip :)
Top
timmfin
Guru
Guru
User avatar
Posts: 336
Joined: Wed Sep 04, 2002 11:39 pm
Location: Maryland, USA
Contact:
Contact timmfin
Website

  • Quote

Post by timmfin » Wed Mar 23, 2005 4:31 pm

Are you dual-booting with windows? Windows like to keep its hardware clock as the localtime (and linux likes to keep it as UTC). So whenever I boot into windows my clock was always 5 hours off (since I'm in EST, 5 hours off of GMT).
Top
n3x
Apprentice
Apprentice
Posts: 247
Joined: Mon Apr 14, 2003 6:53 pm
Location: Kingston, Ontario (uni) Westport, CT (home)

  • Quote

Post by n3x » Wed Mar 23, 2005 9:18 pm

Zyne: Yeah, I've tried ntp-date, but I just can't seem to get it to work. I suppose I should try again.

timmfin: I've noticed that in the past and know about it, but I haven't booted into windows in a loooong time.

Cheers,
james
Top
Schmokin
n00b
n00b
Posts: 47
Joined: Tue Dec 21, 2004 11:08 pm
Location: Salem, OR

  • Quote

Post by Schmokin » Thu Mar 24, 2005 3:40 am

I always had the same problem till I set CLOCK="local" in /etc/conf.d/clock, and since I'm west coast I point /etc/localtime to /usr/share/zoneinfo/America/Los_Angeles
Top
Zyne
Guru
Guru
Posts: 334
Joined: Tue Jun 08, 2004 12:16 pm

  • Quote

Post by Zyne » Thu Mar 24, 2005 7:24 am

n3x wrote:Zyne: Yeah, I've tried ntp-date, but I just can't seem to get it to work. I suppose I should try again.
it worked right immediately for me!
I'm also using the ntp-server on my windows installation, although I haven't booted to windows in a few months...
However, this avoids the problems between the 2 clocks...
Just do a quick search for ntp-client on this board. You'll find plenty of howto's to set up your ntp client...

just make sure you pick the right ntp-server. I'm using the ntp-server of my isp, so I know my time is right :)


good luck!
Top
n3x
Apprentice
Apprentice
Posts: 247
Joined: Mon Apr 14, 2003 6:53 pm
Location: Kingston, Ontario (uni) Westport, CT (home)

  • Quote

Post by n3x » Thu Mar 24, 2005 1:42 pm

Zyne: Okay, thanks I did a quick search and used the guide on the wiki, and it seems to be working now.

thanks,
james
Top
Locked

17 posts • Page 1 of 1

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic