stagit

custom fork of stagit
Index Commits Files Refs README LICENSE
commit f5a899914c2aafac9f7f06e41e89ed1a4de886a1
parent 01684c6cebb902ba2f0169618e0fad83c4fc0212
Author: mjkloeckner <martin.cachari@gmail.com>
Date:   Thu,  5 Jan 2023 02:02:11 -0300

print commit time in local time

Diffstat:
Mstagit.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c
@@ -510,7 +510,7 @@ printtimeshort(FILE *fp, const git_time *intime)
     char out[32];
 
     t = (time_t)intime->time;
-    if (!(intm = gmtime(&t)))
+    if (!(intm = localtime(&t)))
         return;
     strftime(out, sizeof(out), DATE_SHORT_FMT, intm);
     fputs(out, fp);