#3150: Glibc-2.16.0 timestamp/timezone issues
------------------------------------------+---------------------------------
Reporter: matthew@… | Owner: lfs-book@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2
Component: Book | Version: SVN
Severity: normal | Keywords:
------------------------------------------+---------------------------------
Upgrading to Glibc-2.16.0 caused testsuite failures in a number of
packages, namely coreutils, e2fsprogs, perl, flex, and patch.
These all relate to time/date problems and the 'patch' failure is
particularly illuminating and quick/easy to reproduce:
{{{
[44] date -u "+%Y-%m-%d %H:%M:%S %z" -r f -- FAILED
--- expected
+++ got
@@ -1 +1 @@
-2009-03-14 00:00:00 +0000
+2009-03-14 00:00:24 +0000
}}}
Sure enough, my system is showing a 25 second difference between UTC &
GMT; note that the hwclock is stored in UTC and is in sync with public NTP
servers:
{{{
# echo $LANG
en_GB.UTF-8
# hwclock --utc --show && date -u && date
Mon Aug 6 20:52:29 2012 -0.922193 seconds
Mon Aug 6 20:52:29 UTC 2012
Mon Aug 6 20:52:04 GMT 2012
}}}
So, there's 2 things wrong with this:
1. The UK is currently in BST, and therefore I'd expect 'date' to print
UTC + 1 hour[[BR]]
2. The GMT time is about 25 seconds behind what I'd expect it to be.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3150>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page