LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Time (https://www.linuxquestions.org/questions/slackware-14/time-897626/)

michijo 08-16-2011 10:54 AM

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"

BCarey 08-16-2011 11:28 AM

Try running timeconfig as root.

Brian

michijo 08-16-2011 11:47 AM

Quote:

Originally Posted by BCarey (Post 4444720)
Try running timeconfig as root.

Brian

That only messed up my system clock. Its kind of strange.

wadsworth 08-16-2011 12:23 PM

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

Woodsman 08-16-2011 02:14 PM

http://www.linuxquestions.org/questi...0/#post4365165

http://www.linuxquestions.org/questi...5/#post3465076

http://www.linuxquestions.org/questi...6/#post4313881

michijo 08-16-2011 05:51 PM

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.

michijo 08-16-2011 06:00 PM

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.


All times are GMT -5. The time now is 12:12 PM.