]> git.eshelyaron.com Git - emacs.git/commitdiff
Use decoded time accessors in esh-util
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 30 Jul 2019 11:10:42 +0000 (13:10 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 30 Jul 2019 11:10:42 +0000 (13:10 +0200)
* lisp/eshell/esh-util.el (eshell-parse-ange-ls): Use decoded time
accessors.

lisp/eshell/esh-util.el

index fe8eb35d3669eb4a377e617ada2fd596d62c8df1..4835e63baa9ed321b21d4e557cf9b1f113d337e1 100644 (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))