[PATCH 0/8] Show times in the originator's timezone

John Keeping john at keeping.me.uk
Tue Jan 19 20:33:00 CET 2016


This is the result of an issue I identified a while ago [1].  Now that
we use Git 2.7 we can use the timezone handling code in libgit.a without
needing to use a very specific format when showing times in the local
timezone.

This changes the default used for displaying times from commits and tags
to use the timezone specified in the commit/tag object.  The
"local-time" configuration option works exactly as it did before, but
the previous default behaviour of using UTC is no longer supported.  I
think this is reasonably because it brings us closer to the behaviour of
the Git utilities as well as Gitweb and other web frontends for Git
repositories.

[1] http://article.gmane.org/gmane.comp.version-control.cgit/2515

John Keeping (8):
  ui-shared: remove "format" from cgit_print_age()
  parsing: add timezone to ident structures
  ui-shared: add cgit_date_mode()
  ui-{commit,tag}: show dates in originator's timezone
  ui: show ages in the originator's timezone
  ui-shared: use show_date for footer timestamp
  ui-atom: use show_date directly for atom dates
  ui-shared: remove cgit_print_date()

 cgit.h        |  3 +++
 parsing.c     | 10 ++++++----
 ui-atom.c     |  9 +++++++--
 ui-commit.c   |  6 ++++--
 ui-log.c      |  4 ++--
 ui-refs.c     |  6 +++---
 ui-repolist.c |  2 +-
 ui-shared.c   | 47 ++++++++++++++++++-----------------------------
 ui-shared.h   |  4 ++--
 ui-tag.c      |  3 ++-
 10 files changed, 48 insertions(+), 46 deletions(-)

-- 
2.7.0.226.gfe986fe



More information about the CGit mailing list