LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-16-2011, 10:54 AM   #1
michijo
Member
 
Registered: Apr 2011
Posts: 162

Rep: Reputation: 0
Time


I recently was fixing my time, and I set the system time, then set the hardwareclock to the system time: "/sbin/hwclock --systohc". Now the date and hwclock commands return the right time, but all X programs like conky and firefox display a single wrong time that is hours off. Is there a way to synchronize the X-server to the system clock? I already tried this as a fix:

"ln -s /usr/share/zoneinfo /usr/lib/zoneinfo"
 
Old 08-16-2011, 11:28 AM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Try running timeconfig as root.

Brian
 
Old 08-16-2011, 11:47 AM   #3
michijo
Member
 
Registered: Apr 2011
Posts: 162

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by BCarey View Post
Try running timeconfig as root.

Brian
That only messed up my system clock. Its kind of strange.
 
Old 08-16-2011, 12:23 PM   #4
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Is the hardware clock set to UTC or localtime?

I set my time like so...
Code:
ntpd -q
hwclock --systohc --utc
You may want --localtime instead of --utc
 
Old 08-16-2011, 05:51 PM   #6
michijo
Member
 
Registered: Apr 2011
Posts: 162

Original Poster
Rep: Reputation: 0
This problem started when I tried to run Tor recently, and there was a network error. I read the fix was to make sure your hardware clock was right. So I looked into hardware and system time, and indeed hardware clock was off by a few hours. System clock said I needed to run "zic" to set time zone. Whatever I did set the hardware and system clock to the right time, and then Tor started working properly. But then I noticed conky displaying a time at least 4 hours later than it should, and that all other programs like firefox also display this same incorrect time. Right now its 4 hours off.
 
Old 08-16-2011, 06:00 PM   #7
michijo
Member
 
Registered: Apr 2011
Posts: 162

Original Poster
Rep: Reputation: 0
Okay I just fixed things around. May have been conky settings. Conky was using "$tztime" and I changed it to plain "$time". I manually set the firefox clock. So now it seems right. Conky was working right before though. Not sure if this is really a solution or if some other issue will present itself! I am marking this thread as solved though.

Last edited by michijo; 08-16-2011 at 06:02 PM.
 
  


Reply



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
user time, system time, real time .. reg chaitanyajun12 Linux - Newbie 7 03-14-2016 05:43 PM
how to understand user time, sys time, wait time, idle time of CPU guixingyi Linux - Server 1 08-24-2010 10:10 AM
PAM time restrictions - changing Time.conf so it gets time from sql table noodlesoffire Linux - Newbie 1 04-04-2010 04:41 PM
System time vs Hardware time and Daylight Savings Time Toadman Linux - General 6 03-17-2007 08:12 AM

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

All times are GMT -5. The time now is 03:11 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