Paul Eggert <[EMAIL PROTECTED]> writes:
> Simon Josefsson <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>.
---
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 <[EMAIL PROTECTED]>
+
+ * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
+ Paul Eggert <[EMAIL PROTECTED]>.
+
2008-08-20 Paolo Bonzini <[EMAIL PROTECTED]>
* 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