diff options
author | Jeff King <peff@peff.net> | 2017-06-15 09:51:22 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-15 14:38:39 -0700 |
commit | 22280d7ee7a4286542e14dd0784cb29703ebb389 (patch) | |
tree | 820c166320cb584c1bb12fcf5df82369da9df0f8 /builtin/clean.c | |
parent | strbuf: let strbuf_addftime handle %z and %Z itself (diff) | |
download | tgif-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/clean.c')
0 files changed, 0 insertions, 0 deletions