date -u does not work as documented. The info file claims:
`-u'
`--utc'
`--universal'
     Print or set the time and date in Universal Coordinated Time
     instead of in local (wall clock) time.

But instead, -u only applies when printing the time, and is ignored
when setting.

This is most easily demonstrated by this, which should set my time to
the same time it's currently set to, but instead sets it off by my
current offset from UTC:

dev2:/# date ; date -u `date -u +"%m%d%H%M%Y.%S"` ; date
Thu Mar  8 22:02:06 EST 2001
Fri Mar  9 08:02:06 UTC 2001
Fri Mar  9 03:02:06 EST 2001


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

Reply via email to