summaryrefslogtreecommitdiff
path: root/builtin/rev-list.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-06-15 09:51:22 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-15 14:38:39 -0700
commit22280d7ee7a4286542e14dd0784cb29703ebb389 (patch)
tree820c166320cb584c1bb12fcf5df82369da9df0f8 /builtin/rev-list.c
parentstrbuf: let strbuf_addftime handle %z and %Z itself (diff)
downloadtgif-22280d7ee7a4286542e14dd0784cb29703ebb389.tar.xz
t0006: check --date=format zone offsets
We already test that "%z" and "%Z" show the right thing, but we don't actually check that the time we display is the correct one. Let's add two new tests: 1. Test that "format:" shows the time in the author's timezone, just like the other time formats. 2. Test that "format-local:" shows time in the local timezone. We don't want to use our normal UTC for this, because its offset is zero (so the result would be "correct" even if the code forgot to apply the offset or applied it in the wrong direction). We'll use the EST5 zone, which is already used elsewhere in the script (and so is assumed to be available everywhere). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-list.c')
0 files changed, 0 insertions, 0 deletions