Commit 3e943ebc authored by Michael Albinus's avatar Michael Albinus

Use default value of `parse-time-months' in tramp-smb.el

* lisp/net/tramp-smb.el (tramp-smb-read-file-entry): Use default
value of `parse-time-months'.
parent a6a0e857
Pipeline #2712 failed with stage
in 63 minutes and 32 seconds
......@@ -1814,10 +1814,12 @@ Result is the list (LOCALNAME MODE SIZE MTIME)."
(if (and sec min hour day month year)
(encode-time
sec min hour day
;; FIXME: Won't this fail if parse-time-months is configured
;; by the user? See "The date/time prompt" in the Org manual.
;; If the code is OK as-is, perhaps explain why in a comment.
(cdr (assoc (downcase month) parse-time-months))
;; `parse-time-months' could be customized by the
;; user, so we take its default value.
(cdr
(assoc
(downcase month)
(default-toplevel-value 'parse-time-months)))
year)
tramp-time-dont-know))
(list localname mode size mtime))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment