[PATCH 7/8] ui-atom: use show_date directly for atom dates

2016-01-19 Thread John Keeping
This will allow us to remove cgit_print_date and use Git's show_date consistently. Signed-off-by: John Keeping --- ui-atom.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui-atom.c b/ui-atom.c index 11ea0c0..0bf2cf2 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -17,6 +

[PATCH 6/8] ui-shared: use show_date for footer timestamp

2016-01-19 Thread John Keeping
Signed-off-by: John Keeping --- ui-shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-shared.c b/ui-shared.c index 0322968..9699524 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -797,7 +797,7 @@ void cgit_print_docend(void) else { htmlf("genera

[PATCH 8/8] ui-shared: remove cgit_print_date()

2016-01-19 Thread John Keeping
There are no longer any users of this function. Signed-off-by: John Keeping --- ui-shared.c | 20 ui-shared.h | 1 - 2 files changed, 21 deletions(-) diff --git a/ui-shared.c b/ui-shared.c index 9699524..286aa92 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -607,26 +607,6

[PATCH 3/8] ui-shared: add cgit_date_mode()

2016-01-19 Thread John Keeping
This returns the correct mode value for use with Git's show_date() based on the current CGit configuration and will be used in the following patches. Signed-off-by: John Keeping --- ui-shared.c | 9 + ui-shared.h | 1 + 2 files changed, 10 insertions(+) diff --git a/ui-shared.c b/ui-sha

[PATCH 2/8] parsing: add timezone to ident structures

2016-01-19 Thread John Keeping
This will allow us to mimic Git's behaviour of showing times in the originator's timezone when displaying commits and tags. Signed-off-by: John Keeping --- cgit.h| 3 +++ parsing.c | 10 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cgit.h b/cgit.h index b7eccdd.

[PATCH 1/8] ui-shared: remove "format" from cgit_print_age()

2016-01-19 Thread John Keeping
We never use any format other than FMT_SHORTDATE, so move that into the function. Signed-off-by: John Keeping --- ui-log.c | 4 ++-- ui-refs.c | 6 +++--- ui-repolist.c | 2 +- ui-shared.c | 4 ++-- ui-shared.h | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/u

[PATCH 4/8] ui-{commit,tag}: show dates in originator's timezone

2016-01-19 Thread John Keeping
This is done by switching to Git's show_date() function and the mode given by cgit_date_mode(). Signed-off-by: John Keeping --- ui-commit.c | 6 -- ui-tag.c| 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ui-commit.c b/ui-commit.c index 0c3d740..e697571 100644 ---

[PATCH 5/8] ui: show ages in the originator's timezone

2016-01-19 Thread John Keeping
This affects the tooltip showing the full time and the case when a date is sufficiently old to be shown in full rather than as an offset. Signed-off-by: John Keeping --- ui-log.c | 4 ++-- ui-refs.c | 6 +++--- ui-repolist.c | 2 +- ui-shared.c | 22 +++--- ui-share

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

2016-01-19 Thread John Keeping
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 t