summaryrefslogtreecommitdiff
path: root/git-format-patch.sh
diff options
context:
space:
mode:
authorHuw Davies <huw@codeweavers.com>2006-04-29 15:50:28 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-30 07:32:25 (GMT)
commit262a6ef76a1dde97ab50d79fa5cd6d3f9f125765 (patch)
tree9efd8e6b520b2adc47bd05981dad0f5f43f9ab19 /git-format-patch.sh
parentaa6bf0eb6489d652c5877d65160ed33c857afa74 (diff)
downloadgit-262a6ef76a1dde97ab50d79fa5cd6d3f9f125765.zip
git-262a6ef76a1dde97ab50d79fa5cd6d3f9f125765.tar.gz
git-262a6ef76a1dde97ab50d79fa5cd6d3f9f125765.tar.bz2
git-format-patch: Use rfc2822 compliant date.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-format-patch.sh')
-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 c7133bc..c077f44 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";