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 <[EMAIL PROTECTED]>
MontaVista Software, Inc.

Source: MontaVista Software, Inc <[EMAIL PROTECTED]>
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 \
_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to