1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00

Use decoded time accessors in esh-util

* lisp/eshell/esh-util.el (eshell-parse-ange-ls): Use decoded time
accessors.
This commit is contained in:
Lars Ingebrigtsen 2019-07-30 13:10:42 +02:00
parent bddd4d382a
commit 2b5fe44faa

View File

@ -654,7 +654,7 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
(match-string 6))))
(if (nth 0 moment)
(setcar (nthcdr 5 moment)
(nth 5 (decode-time)))
(decoded-time-year (decode-time)))
(setcar (nthcdr 0 moment) 0)
(setcar (nthcdr 1 moment) 0)
(setcar (nthcdr 2 moment) 0))