1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 10:39:01 +02:00

Get year as last rather than 6th field in output of date.

Otherwise, people with 2-word TZ (like `MET DST') lost.
This commit is contained in:
Jim Meyering
1996-04-25 04:28:22 +00:00
parent 56d10407e7
commit 1c4ecd2a95
+1 -1
View File
@@ -63,7 +63,7 @@ day=$2
# Here we have to deal with the problem that the ls output gives either
# the time of day or the year.
case $3 in
*:*) set `date`; year=$6
*:*) set `date`; eval year=\$$#
case $2 in
Jan) nummonthtod=1;;
Feb) nummonthtod=2;;