]> git.ipfire.org Git - thirdparty/git.git/commit - date.c
show_date_relative(): drop unused "tz" parameter
authorJeff King <peff@peff.net>
Thu, 24 Jan 2019 13:12:21 +0000 (08:12 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Jan 2019 20:35:44 +0000 (12:35 -0800)
commit3d42034a18297bc014e2132121c4854f5a07fe4c
treef31607df181152d666d13bfb4100186b8e7fc70b
parentacbf33f8462bb96d18168da85df8ba9ba01015d6
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>
cache.h
date.c
t/helper/test-date.c