]> git.armaanb.net Git - stagit.git/commitdiff
for the commit Date: header use the git format-patch format
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 7 May 2017 11:12:43 +0000 (13:12 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 7 May 2017 11:12:43 +0000 (13:12 +0200)
stagit.c

index d310a583f3e4d0a9b76c249d05f719a9e05b0036..d10c88cae584c4eb23bc771f3541ae1382e0e6a5 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -292,7 +292,7 @@ printtime(FILE *fp, const git_time *intime)
        t = (time_t)intime->time + (intime->offset * 60);
        if (!(intm = gmtime(&t)))
                return;
-       strftime(out, sizeof(out), "%a %b %e %H:%M:%S", intm);
+       strftime(out, sizeof(out), "%a, %e %b %Y %H:%M:%S", intm);
        if (intime->offset < 0)
                fprintf(fp, "%s -%02d%02d", out,
                            -(intime->offset) / 60, -(intime->offset) % 60);