<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>33878</bug_id>
          
          <creation_ts>2017-09-12 05:26:49 +0300</creation_ts>
          <short_desc>hwclock не корректно создаёт /etc/adjtime</short_desc>
          <delta_ts>2025-11-14 12:26:19 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p8</product>
          <component>hwclock</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmitry A. Kharitonov">kharpost</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          
          
          <qa_contact name="qa-p8@altlinux.org">qa-p8</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>165706</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitry A. Kharitonov">kharpost</who>
    <bug_when>2017-09-12 05:26:49 +0300</bug_when>
    <thetext>user@eeedima ~ 5:16:53&gt; sudo sh -c &apos;:&gt;/etc/adjtime; LANG= hwclock --systohc --localtime --debug; cat /etc/adjtime&apos;      
hwclock from util-linux 2.27.1
Using the /dev interface to the clock.
Last drift adjustment done at 0 seconds after 1969
Last calibration done at 0 seconds after 1969
Hardware clock is on unknown time
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2017/09/12 05:17:18
Hw clock time : 2017/09/12 05:17:18 = 1505182638 seconds since 1969
Time since last adjustment is 1505182638 seconds
Calculated Hardware Clock drift is 0.000000 seconds
1505182638.500000 is close enough to 1505182638.500000 (0.000000 &lt; 0.001000)
Set RTC to 1505182638 (1505182638 + 0; refsystime = 1505182638.000000)
Setting Hardware Clock to 05:17:18 = 1505182638 seconds since 1969
ioctl(RTC_SET_TIME) was successful.
Not adjusting drift factor because the --update-drift option was not used.
0.000000 1505182638 0.000000
1505182638
UTC

в последней строке /etc/adjtime должно стоять LOCAL
повторный запуск исправляет положение:

user@eeedima ~ 5:17:18&gt; sudo sh -c &apos;LANG= hwclock --systohc --localtime --debug; cat /etc/adjtime&apos; 
[sudo] password for user:
hwclock from util-linux 2.27.1
Using the /dev interface to the clock.
Last drift adjustment done at 1505182638 seconds after 1969
Last calibration done at 1505182638 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2017/09/12 05:25:26
Hw clock time : 2017/09/12 05:25:26 = 1505183126 seconds since 1969
Time since last adjustment is 488 seconds
Calculated Hardware Clock drift is 0.000000 seconds
1505183126.500000 is close enough to 1505183126.500000 (0.000000 &lt; 0.001000)
Set RTC to 1505183126 (1505183126 + 0; refsystime = 1505183126.000000)
Setting Hardware Clock to 05:25:26 = 1505183126 seconds since 1969
ioctl(RTC_SET_TIME) was successful.
Not adjusting drift factor because the --update-drift option was not used.
0.000000 1505183126 0.000000
1505183126
LOCAL</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276715</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2025-11-14 12:26:19 +0300</bug_when>
    <thetext>Продукт более не поддерживается. Если актуально, то необходимо перевешать на новый поддерживаемый репозиторий (p10, p11, Sisyphus).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>