summaryrefslogtreecommitdiff
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-05-07 13:12:43 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-05-07 13:12:43 +0200
commit54a8a7c1533ce60e3cbe8539bf1e801225d0fabd (patch)
treef09c0a4574ed0acd14166d2d46d8b44f6b8c34f2 /stagit.c
parent7cb669f74f6aeacdbc092267c690624032073eec (diff)
for the commit Date: header use the git format-patch format
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stagit.c b/stagit.c
index d310a58..d10c88c 100644
--- 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);