summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2019-01-24 08:12:21 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-01-24 12:35:44 -0800
commit3d42034a18297bc014e2132121c4854f5a07fe4c (patch)
treef31607df181152d666d13bfb4100186b8e7fc70b /t
parentcolumn: drop unused "opts" parameter in item_length() (diff)
downloadtgif-3d42034a18297bc014e2132121c4854f5a07fe4c.tar.xz
show_date_relative(): drop unused "tz" parameter
The timestamp we receive is in epoch time, so there's no need for a timezone parameter to interpret it. The matching show_date() uses "tz" to show dates in author local time, but relative dates show only the absolute time difference. The author's location is irrelevant, barring relativistic effects from using Git close to the speed of light. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r--t/helper/test-date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-date.c b/t/helper/test-date.c
index a0837371ab..aac4d542c2 100644
--- a/t/helper/test-date.c
+++ b/t/helper/test-date.c
@@ -16,7 +16,7 @@ static void show_relative_dates(const char **argv, struct timeval *now)
for (; *argv; argv++) {
time_t t = atoi(*argv);
- show_date_relative(t, 0, now, &buf);
+ show_date_relative(t, now, &buf);
printf("%s -> %s\n", *argv, buf.buf);
}
strbuf_release(&buf);