LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 02-11-2013, 06:45 AM   #1
ellfire
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
System time goes back to old time (xfce4-datetime-plugin)


Dear friends,

I have changed the system time and hardware clock time to my zone (Europe/Berlin), but noticed that it goes back to some old settings. Can anybody tell me, what the problem is?

The way I understand the theory of "setting up time" is following (please correct me if I am wrong)

1. I use the commad 'ntpdate' to set up the time, using time servers. I believe that this program reads the zoneinfo from /etc/localtime (although I have never seen in any manual, how it actually decides, what is your time zone). So I copied my zone info file and then used ntpdate

Code:
% cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
% ntpdate 0.pool.ntp.org
2. Then I updated hardware clock

Code:
% hwclock --systohc
Then the time, which is shown by xfce4-datetime-plugin on my taskbar panel, adjusted to the new time within a few seconds. But today I noticed that xfce4-datetime-plugin changed back to Moscow time, even though the /etc/localtime was unchanged.

Is it some problem with xfce or with slackware, which I do not understand?
 
Old 02-11-2013, 06:52 AM   #2
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 239

Rep: Reputation: Disabled
The way that i change my clock is
this is the syntax
date Month day hour year
or
Code:
date 021114492013
and then
Code:
hwclock --systohc
 
Old 02-11-2013, 06:55 AM   #3
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 3,635

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
To set my timezone (Europe/Paris) I use Slackware's 'timeconfig' utility and have no problem running ntpd (but I use fluxbox, not xfce -- does that change something?)
 
Old 02-11-2013, 07:20 AM   #4
ellfire
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
To set my timezone (Europe/Paris) I use Slackware's 'timeconfig' utility and have no problem running ntpd (but I use fluxbox, not xfce -- does that change something?)
Thanks for the advice. After applying timeconfig I noticed that 3 files have been changed

Code:
/etc/hardwareclock
/etc/localtime-copied-from
/etc/localtime
May be when I was copying the file /etc/localtime manually (ah, it turned out that I also deleted /etc/localtime-copied-from, which is symbolic link to timezone file), slackware did not understand what I did.

However I am still not sure whether it was because of slackware or because of XFCE...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
user time, system time, real time .. reg chaitanyajun12 Linux - Newbie 4 04-08-2011 12:18 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - General 6 03-17-2007 08:12 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - Networking 6 03-16-2007 07:14 PM
Convert Time String to DATETIME field Centinul Programming 2 09-25-2006 07:20 PM


All times are GMT -5. The time now is 03:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration