git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-format-patch: Use rfc2822 compliant date.

From
HDHuw Davies <huw@codeweavers.com>
Date
Apr 29, 2006, 15:50 UTC
Message-ID
<S1750753AbWD2PuQ/20060429155016Z+1890@vger.kernel.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
---
 git-format-patch.sh |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
fa12b0e43a0559101551d697866c01a92778c67f
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";
-- 
1.3.0
Message 1 of 1 in “git-format-patch: Use rfc2822 compliant date.”
  1. git-format-patch: Use rfc2822 compliant date.Huw Davies, Apr 29, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.