Paul Eggert <[EMAIL PROTECTED]> wrote:
> 2004-01-19  Paul Eggert  <[EMAIL PROTECTED]>
>
>       * tests/touch/relative: Use TZ=UTC0, not TZ=utc (which isn't
>       portable).  Problem reported by Christian Krackowizer.  Also, use
>       +0000 rather than +0 to specify a time zone, as the documentation
>       requires four digits.

This is still not quite right on systems with TAI clocks.  With
unpatched 5.1.1, I get:

out exp differ: char 16, line 1
1c1
< 2004-01-16T04:57:00
---
> 2004-01-16T04:56:38
FAIL: relative

The problem is that this command:
  touch --date='2004-01-16 05:26:38 +0' f || framework_failure=1
uses an offset of 0 from UTC, but it still handles leap seconds
according to the system time zone (right/US/Eastern).  But this
command:
  TZ=utc command ls -og --time-style=+%Y-%m-%dT%H:%M:%S f > out.1 || fail
overrides the system time zone entirely, and thus handles leap seconds
differently.  To ensure that they match, either both commands should
override the time zone, or both should merely specify the UTC offset.


paul


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to