Craig Lawson <address@hidden> writes:
> # date +'%z %Z'
> -0800 PST
> # date --date='2:50 am PST'
> Sun Feb 26 02:50:00 PST 2006
> # date --utc --date='2:50 am PST'
> Mon Feb 27 10:50:00 UTC 2006
>
> PST is 8 hours ahead of UTC, so the second result should show "Feb 26".
No, the result is correct. The --utc option tells "date" to act as if
the current time zone is UTC. Therefore, when you invoke the second
"date" command, today's date is already February 27, and the --date
string is therefore equivalent to "2:50 am PST 2006-02-27". The
output string is the correct UTC equivalent of that.