summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2013-02-21 14:36:16 +0100
committerMichael Albinus <michael.albinus@gmx.de>2013-02-21 14:36:16 +0100
commit886bae77f01a92cb2f40425197e48ea40582c1be (patch)
treee77329644d9024c739b28c3289145d4c4dbf9212
parent5313bbc7716f88453d329a39181e6e583ebcc41f (diff)
downloademacs-886bae77f01a92cb2f40425197e48ea40582c1be.tar.gz
* net/tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only
temporarily, via "env".
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp-sh.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 15dd5d30654..9ecf7ebddd7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-21 Michael Albinus <michael.albinus@gmx.de>
+
+ * net/tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only
+ temporarily, via "env".
+
2013-02-21 Glenn Morris <rgm@gnu.org>
* info.el (Info-enable-edit): Remove.
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 7388c570874..82cbda57086 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1410,7 +1410,7 @@ of."
(utc (not (featurep 'xemacs))))
(tramp-send-command-and-check
v (format "%s touch -t %s %s"
- (if utc "TZ=UTC; export TZ;" "")
+ (if utc "env TZ=UTC" "")
(if utc
(format-time-string "%Y%m%d%H%M.%S" time t)
(format-time-string "%Y%m%d%H%M.%S" time))