Code

git-format-patch: Use rfc2822 compliant date.
authorHuw Davies <huw@codeweavers.com>
Sat, 29 Apr 2006 15:50:28 +0000 (15:50 +0000)
committerJunio C Hamano <junkio@cox.net>
Sun, 30 Apr 2006 07:32:25 +0000 (00:32 -0700)
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-format-patch.sh

index c7133bc12624a7d00ea8c36b8f55207c16127bf4..c077f44ca1637008b5c16c3d48294a2d268edc9e 100755 (executable)
@@ -205,11 +205,10 @@ sub show_date {
     }
     my $t = $time + $minutes * 60;
     my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime($t);
-    return sprintf("%s %s %d %02d:%02d:%02d %d %+05d",
-                  $weekday_names[$wday],
-                  $month_names[$mon],
-                  $mday, $hour, $min, $sec,
-                  $year+1900, $tz);
+    return sprintf("%s, %d %s %d %02d:%02d:%02d %+05d",
+                  $weekday_names[$wday], $mday,
+                  $month_names[$mon], $year+1900,
+                  $hour, $min, $sec, $tz);
 }
 
 print "From nobody Mon Sep 17 00:00:00 2001\n";