From c5544ea6607e49bd5f3cceecd59903687e8b1654 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 17 Apr 2012 13:48:13 +0200 Subject: [PATCH] use Date_HumanDiff from PEAR to display changelog times --- data/templates/display-sidebar-history.htm | 2 +- www/display.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/templates/display-sidebar-history.htm b/data/templates/display-sidebar-history.htm index 627420b..7deacd0 100644 --- a/data/templates/display-sidebar-history.htm +++ b/data/templates/display-sidebar-history.htm @@ -10,7 +10,7 @@ {% endspaceless %} {{commit.hash|slice(0, 6)}} {{commit.committerName}} - {{commit.committerTime|date('Y-m-d')}} + {{dh.get(commit.committerTime)}} {% else %}

No commits yet

diff --git a/www/display.php b/www/display.php index 7a1c1cc..c8df8a9 100644 --- a/www/display.php +++ b/www/display.php @@ -12,6 +12,7 @@ render( 'display', array( 'repo' => $repo, + 'dh' => new \Date_HumanDiff(), ) ); ?> -- 2.30.2