From 2b5fe44faad82afd393b0470ff05577520d766e9 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 30 Jul 2019 13:10:42 +0200 Subject: [PATCH] Use decoded time accessors in esh-util * lisp/eshell/esh-util.el (eshell-parse-ange-ls): Use decoded time accessors. --- lisp/eshell/esh-util.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el index fe8eb35d366..4835e63baa9 100644 --- a/lisp/eshell/esh-util.el +++ b/lisp/eshell/esh-util.el @@ -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)) -- 2.39.2