From ef718cbe9efde657903054d04cfc6aacb26d5100 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 14 Feb 2019 12:36:18 +0100 Subject: [PATCH] Adapt tramp-adb-handle-set-file-times * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times): Use 'touch -d', 'touch -t' does not seem to work. Use Universal Time. --- lisp/net/tramp-adb.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index f8b0505b41b..22f2c5f6bf1 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el @@ -679,8 +679,8 @@ But handle the case, if the \"test\" command is not available." (current-time) time))) (tramp-adb-send-command-and-check - v (format "touch -t %s %s" - (format-time-string "%Y%m%d%H%M.%S" time) + v (format "touch -d %s %s" + (format-time-string "%Y-%m-%dT%H:%M:%S" time t) (tramp-shell-quote-argument localname)))))) (defun tramp-adb-handle-copy-file -- 2.39.5