Jim, Paul, David, or whoever's in charge of date(1) these days:
GNU sh-utils 2.0 broke date's --utc option (setting half); the TZ variable
does not get set to UTC0 prior to calling posixtime(), somewhere in the
vicinity of line 414. Hence "date --utc 0201015401.34" results in this:
Thu Feb 1 01:54:34 PST 2001
rather than this:
Thu Feb 1 01:54:34 UTC 2001
(And, of course, this is not just a display bug; the time really does get
set 8 hours in the future.)
This is the version of date(1) that ships in Slackware 7.1 and the current
proto-7.2 distribution, btw (Patrick et al.).
Trivial patch appended.
Regards,
--
Greg Roelofs [EMAIL PROTECTED] http://pobox.com/~newt/
Newtware, PNG Group, Info-ZIP, Philips Research, ...
--- date.c.old Sun Aug 1 03:59:22 1999
+++ date.c Wed Jan 31 18:03:14 2001
@@ -411,6 +411,7 @@
given in the POSIX-format. */
set_date = 1;
datestr = argv[optind];
+ MAYBE_SET_TZ_UTC0;
when = posixtime (datestr,
PDS_TRAILING_YEAR | PDS_CENTURY | PDS_SECONDS);
format = NULL;
_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils