From: Michael Albinus Date: Thu, 21 Feb 2013 13:36:16 +0000 (+0100) Subject: * net/tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only X-Git-Tag: emacs-24.3.90~173^2~6^2~73 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=886bae77f01a92cb2f40425197e48ea40582c1be;p=emacs.git * net/tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only temporarily, via "env". --- 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 + + * net/tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only + temporarily, via "env". + 2013-02-21 Glenn Morris * 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))