<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
					xmlns:content="http://purl.org/rss/1.0/modules/content/"
					xmlns:wfw="http://wellformedweb.org/CommentAPI/"
					xmlns:atom="http://www.w3.org/2005/Atom"
				  >
<channel>
<atom:link rel="self"  type="application/rss+xml"  href="http://rulinux.net/rss_from_sect_4_subsect_10_thread_42729"  />
<title>rulinux.net - Форум - Talks - Какая сволочь всё время переводит мне часы?</title>
<link>http://rulinux.net/</link>
<description><![CDATA[Портал о GNU/Linux и не только]]></description>
<image><title>rulinux.net - Форум - Talks - Какая сволочь всё время переводит мне часы?</title>
<link>http://rulinux.net/</link>
<url>http://rulinux.net/rss_icon.png</url>
</image>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218444</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218444</guid>
<pubDate>Mon, 07 Nov 2016 12:55:32 +0300</pubDate>
<description><![CDATA[<p>&gt; Допустим, что date такой умный, что не поленился посмотреть в tz_data
<br><br>
hwclock тоже выводит дату в зависимости от локали:
<br><br>
<fieldset><legend>bash</legend><div class="highlight bash"><br />
$ <span class="kw2">sudo</span> hwclock<br />
2016-11-07 12:35:59.327400+0:00<br />
$ &nbsp;<span class="kw3">export</span> <span class="re2">TZ</span>=<span class="st0">&quot;GMT-9&quot;</span><br />
$ <span class="kw2">sudo</span> hwclock<br />
<span class="nu0">2016</span>-<span class="nu0">11</span>-07 <span class="nu0">21</span>:<span class="nu0">36</span>:<span class="nu0">05.404513</span>+<span class="nu0">9</span>:00<br />
&nbsp;</div></fieldset>
<br><br>

&gt; я говорю: hwclock --hctosys и date начинает тут же выводить 17:00. А почему теперь он не переводит стрелки?
<br><br>
А он ещё кернеловскую тайм-зону подправляет и какое-то поле, связанное как раз с переводом на зимнее время, наверное в этом дело:
<br>
<div class="quote"><pre>       -s, --hctosys
              Set the System Time from the Hardware Clock.

              Also set the kernel’s timezone value to the  local  timezone  as  indicated  by  the  TZ  environment  variable  and/or
              /usr/share/zoneinfo, as tzset(3) would interpret them.  The obsolete tz_dsttime field of the kernel’s timezone value is
              set to DST_NONE. (For details on what this field used to mean, see settimeofday(2).)

              This is a good option to use in one of the system startup scripts.</pre></div>
<br><br>
Обрати внимание на последнюю строчку описания опции. 
<br>
<br>
В любом случае хрен знает что это именно происходит в твоём компьютере. Я бы на твоём месте попробовал:
<br>
<ol start="1"><li>&nbsp; Обновить tzdata
<li>&nbsp; Сказать линупсу чтобы UTC использовал для бивисных часов
<li>&nbsp; Установил бы дефолтную (системную) таймзону в соответствие с реальным положением дел</ol>


</p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218443</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218443</guid>
<pubDate>Mon, 07 Nov 2016 11:56:05 +0300</pubDate>
<description><![CDATA[<p>Тогда я что-то не понимаю. Вот смотри, комп <s>загрузился</s> проснулся, по hwclock у него 17:00, по date 18:00. Везде localtime. Допустим, что date такой умный, что не поленился посмотреть в tz_data и, увидев, что стоит перевод стрелок, взял и перевёл. Теперь я говорю: hwclock --hctosys и date начинает тут же выводить 17:00. А почему теперь он не переводит стрелки?</p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218439</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218439</guid>
<pubDate>Mon, 07 Nov 2016 11:23:27 +0300</pubDate>
<description><![CDATA[<p>&gt; Ну и что? Я хочу, чтобы без моего ведома демоны не баловались с часами.
<br><br>
А не факт что балуются. date тебе показывает время в твоей локальной таймзоне. И если у тебя устаревшая tz_data, которая не знает про отмену сезонных переводов часов, то имеешь что имеешь.
</p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218438</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218438</guid>
<pubDate>Mon, 07 Nov 2016 11:23:06 +0300</pubDate>
<description><![CDATA[<p><b>logs the old/new system time when date(1) changes it</b></p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218437</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218437</guid>
<pubDate>Mon, 07 Nov 2016 11:19:37 +0300</pubDate>
<description><![CDATA[<p><i>> Если в РФ, то я бы предположил, что ты много лет как не обновлял tz_data.</i><br> Ну и что? Я хочу, чтобы без моего ведома демоны не баловались с часами.</p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218436</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218436</guid>
<pubDate>Mon, 07 Nov 2016 11:17:52 +0300</pubDate>
<description><![CDATA[<p><i>> Есть некий /var/log/wtmp</i><br> А это к чему? Там же попытки логинов хранятся. Машина однопользовательская.</p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218435</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218435</guid>
<pubDate>Mon, 07 Nov 2016 11:16:40 +0300</pubDate>
<description><![CDATA[<p>&gt; date уже возвращает +/- 1 в зависимости от времени года.
<br><br>
Ты в какой временной зоне (echo $TZ из консоли в которой date запускал)? Если в РФ, то я бы предположил, что ты много лет как не обновлял <a href="http://rulinux.net/thread_34873_page_1#msg109511">tz_data</a>.</p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218433</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218433</guid>
<pubDate>Mon, 07 Nov 2016 11:10:10 +0300</pubDate>
<description><![CDATA[<p>Есть некий /var/log/wtmp: <fieldset><legend>text</legend><div class="highlight text"><br />
Furthermore, &nbsp;the<br />
terminal name ~ with username shutdown or reboot indicates<br />
a system shutdown or reboot and the pair of terminal names<br />
|/} &nbsp;logs the old/new system time when date(1) changes it.<br />
wtmp is maintained by login(1), init(1), and some versions<br />
of &nbsp;getty(8) &nbsp;(e.g., &nbsp;mingetty(8) &nbsp;or agetty(8)).<br />
&nbsp;</div></fieldset><br><br>Читается через sudo last -f /var/log/wtmp. Я не знаю, на что там конкретно смотреть, но может поможет.</p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218432</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218432</guid>
<pubDate>Mon, 07 Nov 2016 11:00:32 +0300</pubDate>
<description><![CDATA[<p>В бивисе localtime. Забыл добавить. Сразу после <s>загрузки</s> пробуждения в день Д, hwclock говорит нормальное старое время, а вот date уже возвращает +/- 1 в зависимости от времени года.</p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218430</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218430</guid>
<pubDate>Mon, 07 Nov 2016 10:42:16 +0300</pubDate>
<description><![CDATA[<p>У тебя в биосе кто, UTC или localtime?</p>]]></description>
</item>
<item>
<title>Re:Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218429</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218429</guid>
<pubDate>Mon, 07 Nov 2016 10:38:53 +0300</pubDate>
<description><![CDATA[<p>хз. вангую на &quot;timezone&quot;. настрой ntp и спи спокойно. как вариант. или разберись с настройкой date/timezone. </p>]]></description>
</item>
<item>
<title>Какая сволочь всё время переводит мне часы?</title>
<link>https://rulinux.net/message.php?newsid=42729&amp;page=1#218427</link>
<guid>https://rulinux.net/message.php?newsid=42729&amp;page=1#218427</guid>
<pubDate>Mon, 07 Nov 2016 10:29:32 +0300</pubDate>
<description><![CDATA[<p>Стабильно, два раза в год. Притом что компьютер перезагружается раз в полтора, а в остальное время впадает в спячку (echo &quot;disk&quot; &gt; /sys/power/state). Как вычислить демона, балующегося часами?</p>]]></description>
</item>
</channel>
</rss>