From 5db39170b6c979655a0238dcd627e206febed88b Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Tue, 22 May 2007 21:08:46 +0000 Subject: Add cgit_print_age() function This function can be used to print relative dates, just as in gitweb. Next step will be to actually use the new function. Signed-off-by: Lars Hjemli --- (limited to 'ui-commit.c') diff --git a/ui-commit.c b/ui-commit.c index ff1fad3..59eeb1d 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -172,14 +172,14 @@ void cgit_print_commit(const char *hex) html(" "); html_txt(info->author_email); html(""); - cgit_print_date(info->author_date); + cgit_print_date(info->author_date, FMT_LONGDATE); html("\n"); html("committer"); html_txt(info->committer); html(" "); html_txt(info->committer_email); html(""); - cgit_print_date(info->committer_date); + cgit_print_date(info->committer_date, FMT_LONGDATE); html("\n"); html("tree