[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] Submit patch: use UTC in patch timestamps
From: |
Joe Green |
Subject: |
[Quilt-dev] Submit patch: use UTC in patch timestamps |
Date: |
Thu, 11 Aug 2005 13:18:07 -0700 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050317) |
The "patch" and "date" documentation recommend using the environment
variables "LC_ALL=C TZ=UTC0" to create standardized date information. I
think this would be a good thing for quilt to do; the attached patch
implements this for the timestamps quilt creates for generated diffs.
--
Joe Green <address@hidden>
MontaVista Software, Inc.
Source: MontaVista Software, Inc <address@hidden>
Type: Enhancement
Disposition: submit to http://savannah.nongnu.org/projects/quilt
Use UTC0 timezone for patch timestamps.
Index: quilt-0.42/scripts/patchfns.in
===================================================================
--- quilt-0.42.orig/scripts/patchfns.in
+++ quilt-0.42/scripts/patchfns.in
@@ -542,8 +542,8 @@ diff_file()
|| old_date=$'\t'"1970-01-01 00:00:00.000000000 +0000"
else
[ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \
- || old_date=$'\t'$(date +'%Y-%m-%d %H:%M:%S.%N %z' \
- -r "$old_file")
+ || old_date=$'\t'$(LC_ALL=C TZ=UTC0 \
+ date +'%Y-%m-%d %H:%M:%S.%N %z' -r "$old_file")
fi
if ! [ -s "$new_file" ]
then
@@ -553,8 +553,8 @@ diff_file()
|| new_date=$'\t'"1970-01-01 00:00:00.000000000 +0000"
else
[ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \
- || new_date=$'\t'$(date +'%Y-%m-%d %H:%M:%S.%N %z' \
- -r "$new_file")
+ || new_date=$'\t'$(LC_ALL=C TZ=UTC0 \
+ date +'%Y-%m-%d %H:%M:%S.%N %z' -r "$new_file")
fi
@DIFF@ -N $QUILT_DIFF_OPTS $old_file $new_file \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Quilt-dev] Submit patch: use UTC in patch timestamps,
Joe Green <=