[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 3951199985: Port TZ settings to POSIX
From: |
Paul Eggert |
Subject: |
master 3951199985: Port TZ settings to POSIX |
Date: |
Sun, 2 Oct 2022 19:50:06 -0400 (EDT) |
branch: master
commit 395119998574051e53d466d55136d3e6498e90ef
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Port TZ settings to POSIX
* lisp/Makefile.in (.el.elc):
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times):
Use the POSIX standard TZ=UTC0 rather than the GNU extension
TZ=UTC to set the time zone to UTC.
---
lisp/Makefile.in | 2 +-
lisp/net/tramp-sh.el | 2 +-
lisp/net/tramp-sudoedit.el | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index e66d80f814..4c26e42370 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -315,7 +315,7 @@ ifeq ($(ANCIENT),yes)
.el.elc:
$(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \
-l comp -f batch-byte-compile $<
- TZ=UTC touch -t 197001010000 $@
+ TZ=UTC0 touch -t 197001010000 $@
else
.el.elc:
$(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 1d0d0f8b1b..3240f5352a 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1528,7 +1528,7 @@ of."
time)))
(tramp-send-command-and-check
v (format
- "env TZ=UTC %s %s %s %s"
+ "env TZ=UTC0 %s %s %s %s"
(tramp-get-remote-touch v)
(if (tramp-get-connection-property v "touch-t")
(format "-t %s" (format-time-string "%Y%m%d%H%M.%S" time t))
diff --git a/lisp/net/tramp-sudoedit.el b/lisp/net/tramp-sudoedit.el
index f8b602e34c..dc87c590b3 100644
--- a/lisp/net/tramp-sudoedit.el
+++ b/lisp/net/tramp-sudoedit.el
@@ -568,7 +568,7 @@ the result will be a local, non-Tramp, file name."
nil
time)))
(tramp-sudoedit-send-command
- v "env" "TZ=UTC" "touch" "-t"
+ v "env" "TZ=UTC0" "touch" "-t"
(format-time-string "%Y%m%d%H%M.%S" time t)
(if (eq flag 'nofollow) "-h" "")
(tramp-compat-file-name-unquote localname)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 3951199985: Port TZ settings to POSIX,
Paul Eggert <=