strbuf: let strbuf_addftime handle %z and %Z itself
[gitweb.git] / date.c
diff --git a/date.c b/date.c
index a996331f5b33703c9f70844c6b49453ec39d16a7..6eccbd85465761b51fc10b60bf411e2e0c9f530e 100644 (file)
--- a/date.c
+++ b/date.c
@@ -233,7 +233,7 @@ const char *show_date(unsigned long time, int tz, const struct date_mode *mode)
                        month_names[tm->tm_mon], tm->tm_year + 1900,
                        tm->tm_hour, tm->tm_min, tm->tm_sec, tz);
        else if (mode->type == DATE_STRFTIME)
-               strbuf_addftime(&timebuf, mode->strftime_fmt, tm);
+               strbuf_addftime(&timebuf, mode->strftime_fmt, tm, tz, "");
        else
                strbuf_addf(&timebuf, "%.3s %.3s %d %02d:%02d:%02d %d%c%+05d",
                                weekday_names[tm->tm_wday],