Skip to main content

Thread: Adjust clock of remote machine using cron, problem with daylight saving time


hi folks,

have adjust clock of device connected pc via rs232. therefore added entry crontab calls script hourly sends command set clock on remote device current time of pc. works great in 98.86% of cases.

time fails in fall when daylight saving time ends. job executed @ 1am, 2am , @ 3am, between calls @ 2am , 3am 2 hours , cron won't execute job @ 2am twice, when time set 2am 3am. therefore time on remote device laggs 1 hour hour. isn't nice.

problem solved if cron call job second time after clock has been reset 2am. possible? if not, other ideas?

alot!

signpainter

don't think of time changing, think of time zone changing. i'm guessing computer doesn't see 2 twice (otherwise i'd guess run job twice). maybe set run every hour plus 1 minute, still updates @ same frequency, , 1 minute should give machine enough time figure out if it's daylight savings.

# m h dom month dow
1 * * * * updatetime

instead of

0 * * * * updatetime


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] Adjust clock of remote machine using cron, problem with daylight saving time


Ubuntu

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support