Skip to content
Browse files

git-format-patch: Use rfc2822 compliant date.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information...
1 parent aa6bf0e commit 262a6ef76a1dde97ab50d79fa5cd6d3f9f125765 @hdmdavies hdmdavies committed with Junio C Hamano Apr 29, 2006
Showing with 4 additions and 5 deletions.
  1. +4 −5 git-format-patch.sh
View
9 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";

0 comments on commit 262a6ef

Please sign in to comment.
Something went wrong with that request. Please try again.