[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autobuild.m4 time zone fix
From: |
Simon Josefsson |
Subject: |
Re: autobuild.m4 time zone fix |
Date: |
Thu, 21 Aug 2008 09:25:00 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
Paul Eggert <address@hidden> writes:
> Simon Josefsson <address@hidden> writes:
>
>> - date=`date +%Y%m%d-%H%M%S`
>> + date=`TZ=UTC date +%Y%m%d-%H%M%S`
>
> Although this change will work on many hosts, it is not portable in
> general. It should say TZ=UTC0 to conform to POSIX.
Thanks, I've pushed the patch below.
/Simon
>From 1a033b0f27e71e0bd6b825215eae0a3eb15529be Mon Sep 17 00:00:00 2001
From: Simon Josefsson <address@hidden>
Date: Thu, 21 Aug 2008 09:24:17 +0200
Subject: [PATCH] m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.
Reported by Paul Eggert <address@hidden>.
---
ChangeLog | 5 +++++
m4/autobuild.m4 | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 17cac59..e970bb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-21 Simon Josefsson <address@hidden>
+
+ * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
+ Paul Eggert <address@hidden>.
+
2008-08-20 Paolo Bonzini <address@hidden>
* modules/gettext: Add m4/threadlib.m4.
diff --git a/m4/autobuild.m4 b/m4/autobuild.m4
index ccd9b5c..a025e73 100644
--- a/m4/autobuild.m4
+++ b/m4/autobuild.m4
@@ -29,7 +29,7 @@ AC_DEFUN([AB_INIT],
ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
- date=`TZ=UTC date +%Y%m%dT%H%M%SZ`
+ date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
if test "$?" != 0; then
date=`date`
fi
--
1.5.6.3