summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-04-30 00:59:10 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-04-30 00:59:10 -0700
commit66ae0c7702e68765dad17aa05c5d9255d999216c (patch)
treea391096b086baba7848ca7f45b9a1bb1570af7c4
parentMerge branch 'fix' (diff)
parentgit-format-patch: Use rfc2822 compliant date. (diff)
downloadtgif-66ae0c7702e68765dad17aa05c5d9255d999216c.tar.xz
Merge branch 'fix'
* fix: git-format-patch: Use rfc2822 compliant date.
-rwxr-xr-xgit-format-patch.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/git-format-patch.sh b/git-format-patch.sh
index c7133bc126..c077f44ca1 100755
--- a/git-format-patch.sh
+++ b/git-format-patch.sh
@@ -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";