Unix Technical Forum

S11.0 does not update change of time??

This is a discussion on S11.0 does not update change of time?? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> > My Slackware systems which were running at the exact time of the > wintertime switch were automatically updated ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 02-20-2008, 07:38 PM
Manimoto
 
Posts: n/a
Default Re: S11.0 does not update change of time??

> My Slackware systems which were running at the exact time of the
> wintertime switch were automatically updated but the systems which were
> offline during the switch did not update themselves automatically after
> they were turned on.
>
> - dfisek


Yes, my assumption is that unlike MSWIN, UN*X's do not know about a
time change unless they are running. Is this assumption correct?

By the way, is it the kernel that keeps checking for a Summertime
to Wintertime change? There is no daemon running that monitors this as
far as I know.

Thx.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-20-2008, 07:38 PM
Barnacle Bill
 
Posts: n/a
Default Re: S11.0 does not update change of time??

On 2006-10-30, Manimoto <manimotomushi@hotmail.com> wrote:
> I did an upgrade from 10.2 -> 11.0, i.e. did not do a complete
> reinstall.
> Everything went well, and the system is running with no problems.
> However two days ago when Ontario, Canada switched from summer time,
> the time was not automatically updated on the pc.
> THX
>


I didn't notice until your post. I used the KDE clock 'Adjust time and
date' function and clicked on the 'set time and date automatically'
checkbox. The clock changed. Maybe a minor oversight...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-20-2008, 07:38 PM
Grant
 
Posts: n/a
Default Re: S11.0 does not update change of time??

On 30 Oct 2006 18:28:24 -0800, "Manimoto" <manimotomushi@hotmail.com> wrote:

>By the way, is it the kernel that keeps checking for a Summertime
>to Wintertime change? There is no daemon running that monitors this as
>far as I know.


ntpd, use ntpdate prior to running ntpd to jump to correct time.

Grant.
--
http://bugsplatter.mine.nu/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 02-20-2008, 07:38 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: S11.0 does not update change of time??

Manimoto wrote:

> By the way, is it the kernel that keeps checking for a Summertime to
> Wintertime change? There is no daemon running that monitors this as
> far as I know.


The kernel maintains system time in UTC, which has no concept of
daylight-savings time. The conversion to local time, with or without
daylight-savings, is done in user-space by the programs that read and
display the system time. That's the whole point of /etc/localtime.

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems and Network analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 02-20-2008, 07:38 PM
Davide Consonni
 
Posts: n/a
Default Re: S11.0 does not update change of time??

Manimoto wrote:
> Anyone have a clue how to fix this?


create a file in /etc/cron.hourly/ called updatetime
with +x permission and put into this:

#!/bin/sh
echo "Updating time" | logger
/usr/sbin/ntpdate pool.ntp.org | logger
/sbin/hwclock --systohc | logger


--
Davide Consonni
<davideconsonni@virgilio.it>
http://csvtosql.sourceforge.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 02-20-2008, 07:39 PM
Robby Workman
 
Posts: n/a
Default Re: S11.0 does not update change of time??

On 2006-10-31, Davide Consonni <davideconsonni@virgilio.it> wrote:
> Manimoto wrote:
>> Anyone have a clue how to fix this?

>
> create a file in /etc/cron.hourly/ called updatetime
> with +x permission and put into this:
>
> #!/bin/sh
> echo "Updating time" | logger
> /usr/sbin/ntpdate pool.ntp.org | logger
> /sbin/hwclock --systohc | logger



Why? That's the purpose of ntpd.

--

http://rlworkman.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 02-20-2008, 07:39 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: S11.0 does not update change of time??

Davide Consonni wrote:

> create a file in /etc/cron.hourly/ called updatetime ...


Strikes me as a hack (an ugly hack, even), rather than a fix ...
It might "work", but it certainly doesn't fix the underlying problem.

To the OP, at the risk of pointing out something obvious and already
checked, check the permissions of /usr/share/zoneinfo and below. Files
should be world-readable, and directories should be readable and
executable for all users.

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems and Network analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 02-20-2008, 07:39 PM
Milan Babuskov
 
Posts: n/a
Default Re: S11.0 does not update change of time??

Barnacle Bill wrote:
> I didn't notice until your post. I used the KDE clock 'Adjust time and
> date' function and clicked on the 'set time and date automatically'
> checkbox.


Which uses the NTP server shown in dropdown list on right side of it.
So, it doesn't work without Internet connection.


--
Milan Babuskov
http://njam.sourceforge.net
http://swoes.blogspot.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 02-20-2008, 07:39 PM
Manimoto
 
Posts: n/a
Default Re: S11.0 does not update change of time??

Sylvain Robitaille wrote:
>
> The kernel maintains system time in UTC, which has no concept of
> daylight-savings time. The conversion to local time, with or without
> daylight-savings, is done in user-space by the programs that read and
> display the system time. That's the whole point of /etc/localtime.


Ok thanks. Just what does /etc/localtime or /etc/ localtime-copied-from
do?

How does the time change occur automatically? What program was
responsible for
changing the time on my PC 3 days ago when it went from Oct 29, 02:00
daylight saving time
to Oct 29, 01:00?

As to user-space, there are progs like tzfile, tzname, tzselect, tzset,
etc.
I don't see any of these being used in any slackware scripts - only
hwclock is used.
Also there just are no "time related" daemons running which could be
responsible for
auto time changing.

You seem to be a sys admin - right? Hope you can answer these mind
bending questions :-)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 02-20-2008, 07:39 PM
Chick Tower
 
Posts: n/a
Default Re: S11.0 does not update change of time??

On Mon, 30 Oct 2006 18:28:24 -0800, Manimoto wrote:

> Yes, my assumption is that unlike MSWIN, UN*X's do not know about a time
> change unless they are running. Is this assumption correct?


Not in my experience. This PC (set to UTC because it has no MS OS
installed) had the new correct time when I turned it on Sunday morning. I
don't use ntpd to keep the time set, but I do occasionally run ntpdate
when I'm connected to the Internet.

Now, when I get back to my dual-boot PC (set to local time to keep Win98
happy), I'll try to remember to run Windows first so it can handle the
time change. I read somewhere that that's the recommended action to take,
and it resets that PC just once, so perhaps Linux won't change the time on
a PC set to local time instead of UTC. That's just a guess that explains
my experiences.

--
Chick Tower

For e-mail: aols . sent . towerboy AT xoxy . net

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com