[Bug 1610405] [NEW] timedatectl not reporting DST info

bobbaer bobbaer at live.com
Fri Aug 5 19:59:46 UTC 2016


Public bug reported:

DST information in timedatectl went awol some time around ubuntu 13.x or
14x.

Currently running:
 lsb_release -rd
 Description:	Ubuntu 16.04.1 LTS
 Release:	16.04

affected Package: systemd,229-4ubuntu7, amd64


What I see:
#/usr/bin/timedatectl 
      Local time: Fr 2016-08-05 21:38:03 CEST
  Universal time: Fr 2016-08-05 19:38:03 UTC
        RTC time: Fr 2016-08-05 19:38:03
       Time zone: Europe/Berlin (CEST, +0200)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no

What I expect:
#./timedatectl_centos 
      Local time: Fr 2016-08-05 21:38:29 CEST
  Universal time: Fr 2016-08-05 19:38:29 UTC
        RTC time: Fr 2016-08-05 19:38:29
       Time zone: Europe/Berlin (CEST, +0200)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: yes
 Last DST change: DST began at
                  So 2016-03-27 01:59:59 CET
                  So 2016-03-27 03:00:00 CEST
 Next DST change: DST ends (the clock jumps one hour backwards) at
                  So 2016-10-30 02:59:59 CEST
                  So 2016-10-30 02:00:00 CET


According to systemd's changelog over at https://github.com/systemd/systemd/blob/master/NEWS DST reporting appeared with 196. No signs of removal of this functionality.


How to reproduce
1. execute timedatectl on a  live system might work
2. I'm running a out-of-the box installation of 16.04. Problem can be seen on two different laptops.
3. sudo timedatectl makes no difference
4. The expected output above was created by a timedatectl binary taken Centos (just extracted from rpmfind's systemd-219-19.el7_2.7.x86_64.rpm resp. copied over from a RHEL 7 system )


Not sure if useful, both binaries in comparison:

# /usr/bin/timedatectl  --version
systemd 229
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN

#./timedatectl_centos  --version
systemd 219
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN


# file /usr/bin/timedatectl 
/usr/bin/timedatectl: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=1044615393ef0fb0bf462bfbc528ab8ef8481eba, stripped

# file ./timedatectl_centos 
./timedatectl_centos: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=fad3fb9a6e27da8d30ce196b79c482a5d3090dda, stripped


# ldd  /usr/bin/timedatectl 
	linux-vdso.so.1 =>  (0x00007ffd3471d000)
	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f3b923ac000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3b921a4000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3b91f86000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3b91bbd000)
	/lib64/ld-linux-x86-64.so.2 (0x000055e26d64c000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f3b9194d000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3b91748000)

# ldd ./timedatectl_centos 
	linux-vdso.so.1 =>  (0x00007fffd5fdf000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f59c3416000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f59c3200000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f59c2fe2000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f59c2c19000)
	/lib64/ld-linux-x86-64.so.2 (0x0000560b23381000)


Return code of both is 0.

strace /usr/bin/timedatectl stops here:
[...[
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
write(1, "       Time zone: Europe/Berlin "..., 46       Time zone: Europe/Berlin (CEST, +0200)
) = 46
write(1, " Network time on: yes\n", 22 Network time on: yes
) = 22
write(1, "NTP synchronized: yes\n", 22NTP synchronized: yes
) = 22
write(1, " RTC in local TZ: no\n", 21 RTC in local TZ: no
)  = 21
close(3)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++


strace ./timedatectl_centos continues:
[...]

write(1, "NTP synchronized: yes\n", 22NTP synchronized: yes
) = 22
write(1, " RTC in local TZ: no\n", 21 RTC in local TZ: no
)  = 21
open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\t\0\0\0\t\0\0\0\0"..., 4096) = 2335
lseek(4, -1476, SEEK_CUR)               = 859
read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\t\0\0\0\t\0\0\0\0"..., 4096) = 1476
close(4)                                = 0
write(1, "      DST active: yes\n", 22      DST active: yes
) = 22
write(1, " Last DST change: DST began at\n", 31 Last DST change: DST began at
) = 31
write(1, "                  So 2016-03-27 "..., 45                  So 2016-03-27 01:59:59 CET
) = 45
write(1, "                  So 2016-03-27 "..., 46                  So 2016-03-27 03:00:00 CEST
) = 46
write(1, " Next DST change: DST ends (the "..., 67 Next DST change: DST ends (the clock jumps one hour backwards) at
) = 67
write(1, "                  So 2016-10-30 "..., 46                  So 2016-10-30 02:59:59 CEST
) = 46
write(1, "                  So 2016-10-30 "..., 45                  So 2016-10-30 02:00:00 CET
) = 45
close(3)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1610405

Title:
  timedatectl not reporting DST info

Status in systemd package in Ubuntu:
  New

Bug description:
  DST information in timedatectl went awol some time around ubuntu 13.x
  or 14x.

  Currently running:
   lsb_release -rd
   Description:	Ubuntu 16.04.1 LTS
   Release:	16.04

  affected Package: systemd,229-4ubuntu7, amd64

  
  What I see:
  #/usr/bin/timedatectl 
        Local time: Fr 2016-08-05 21:38:03 CEST
    Universal time: Fr 2016-08-05 19:38:03 UTC
          RTC time: Fr 2016-08-05 19:38:03
         Time zone: Europe/Berlin (CEST, +0200)
   Network time on: yes
  NTP synchronized: yes
   RTC in local TZ: no

  What I expect:
  #./timedatectl_centos 
        Local time: Fr 2016-08-05 21:38:29 CEST
    Universal time: Fr 2016-08-05 19:38:29 UTC
          RTC time: Fr 2016-08-05 19:38:29
         Time zone: Europe/Berlin (CEST, +0200)
       NTP enabled: yes
  NTP synchronized: yes
   RTC in local TZ: no
        DST active: yes
   Last DST change: DST began at
                    So 2016-03-27 01:59:59 CET
                    So 2016-03-27 03:00:00 CEST
   Next DST change: DST ends (the clock jumps one hour backwards) at
                    So 2016-10-30 02:59:59 CEST
                    So 2016-10-30 02:00:00 CET

  
  According to systemd's changelog over at https://github.com/systemd/systemd/blob/master/NEWS DST reporting appeared with 196. No signs of removal of this functionality.

  
  How to reproduce
  1. execute timedatectl on a  live system might work
  2. I'm running a out-of-the box installation of 16.04. Problem can be seen on two different laptops.
  3. sudo timedatectl makes no difference
  4. The expected output above was created by a timedatectl binary taken Centos (just extracted from rpmfind's systemd-219-19.el7_2.7.x86_64.rpm resp. copied over from a RHEL 7 system )


  Not sure if useful, both binaries in comparison:

  # /usr/bin/timedatectl  --version
  systemd 229
  +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN

  #./timedatectl_centos  --version
  systemd 219
  +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN

  
  # file /usr/bin/timedatectl 
  /usr/bin/timedatectl: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=1044615393ef0fb0bf462bfbc528ab8ef8481eba, stripped

  # file ./timedatectl_centos 
  ./timedatectl_centos: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=fad3fb9a6e27da8d30ce196b79c482a5d3090dda, stripped

  
  # ldd  /usr/bin/timedatectl 
  	linux-vdso.so.1 =>  (0x00007ffd3471d000)
  	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f3b923ac000)
  	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3b921a4000)
  	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3b91f86000)
  	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3b91bbd000)
  	/lib64/ld-linux-x86-64.so.2 (0x000055e26d64c000)
  	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f3b9194d000)
  	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3b91748000)

  # ldd ./timedatectl_centos 
  	linux-vdso.so.1 =>  (0x00007fffd5fdf000)
  	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f59c3416000)
  	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f59c3200000)
  	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f59c2fe2000)
  	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f59c2c19000)
  	/lib64/ld-linux-x86-64.so.2 (0x0000560b23381000)

  
  Return code of both is 0.

  strace /usr/bin/timedatectl stops here:
  [...[
  stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
  write(1, "       Time zone: Europe/Berlin "..., 46       Time zone: Europe/Berlin (CEST, +0200)
  ) = 46
  write(1, " Network time on: yes\n", 22 Network time on: yes
  ) = 22
  write(1, "NTP synchronized: yes\n", 22NTP synchronized: yes
  ) = 22
  write(1, " RTC in local TZ: no\n", 21 RTC in local TZ: no
  )  = 21
  close(3)                                = 0
  exit_group(0)                           = ?
  +++ exited with 0 +++


  
  strace ./timedatectl_centos continues:
  [...]

  write(1, "NTP synchronized: yes\n", 22NTP synchronized: yes
  ) = 22
  write(1, " RTC in local TZ: no\n", 21 RTC in local TZ: no
  )  = 21
  open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 4
  fstat(4, {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
  fstat(4, {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
  read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\t\0\0\0\t\0\0\0\0"..., 4096) = 2335
  lseek(4, -1476, SEEK_CUR)               = 859
  read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\t\0\0\0\t\0\0\0\0"..., 4096) = 1476
  close(4)                                = 0
  write(1, "      DST active: yes\n", 22      DST active: yes
  ) = 22
  write(1, " Last DST change: DST began at\n", 31 Last DST change: DST began at
  ) = 31
  write(1, "                  So 2016-03-27 "..., 45                  So 2016-03-27 01:59:59 CET
  ) = 45
  write(1, "                  So 2016-03-27 "..., 46                  So 2016-03-27 03:00:00 CEST
  ) = 46
  write(1, " Next DST change: DST ends (the "..., 67 Next DST change: DST ends (the clock jumps one hour backwards) at
  ) = 67
  write(1, "                  So 2016-10-30 "..., 46                  So 2016-10-30 02:59:59 CEST
  ) = 46
  write(1, "                  So 2016-10-30 "..., 45                  So 2016-10-30 02:00:00 CET
  ) = 45
  close(3)                                = 0
  exit_group(0)                           = ?
  +++ exited with 0 +++

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1610405/+subscriptions



More information about the foundations-bugs mailing list