Bob Proulx <[EMAIL PROTECTED]> wrote:

| > date --version reports 2.0.

You may have better results with the latest test release.
See below.

...
| However, I think you have uncovered a different bug.
|
|   date -u -s 1401
|   Wed Apr 18 20:01:00 UTC 2001
|   date -u -s '1401 UTC'
|   Wed Apr 18 14:01:00 UTC 2001

Thanks to both of you for the reports.
Bob, what version of date are you using?  And on what type of system?
Using the latest test release

  ftp://alpha.gnu.org/gnu/fetish/sh-utils-2.0.11.tar.gz

on a Linux system with libc-2.2.2, I don't see a problem:

  $ date +%z
  +0200
  $ date -u -s 1401 2> /dev/null
  Sat Apr 21 14:01:00 UTC 2001
  $ date -u -s '1401 UTC'  2> /dev/null
  Sat Apr 21 14:01:00 UTC 2001

| I think those two should work exactly the same.  But perhaps I am
| confused as well.  The first case assumes 1401 is MDT and converts it
| to UTC before setting and printing.  I think date should assume 1401
| is UTC as in the second case.
...

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

Reply via email to