From 0f0ab148c6d444316af10e6b4c7a60630fed45d3 Mon Sep 17 00:00:00 2001 From: Stefan Naewe Date: Fri, 1 Aug 2008 14:54:38 +0200 Subject: Added `local-time` option to cgitrc When `local-time` is set, commit, tag and patch timestamps will be printed in the servers timezone. Also, regardless of the value of `local-time`, these timestamps will now always show the timezone. Signed-off-by: Stefan Naewe Signed-off-by: Lars Hjemli --- cgit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 7881aca..b01fa31 100644 --- a/cgit.h +++ b/cgit.h @@ -22,7 +22,7 @@ /* * Dateformats used on misc. pages */ -#define FMT_LONGDATE "%Y-%m-%d %H:%M:%S" +#define FMT_LONGDATE "%Y-%m-%d %H:%M:%S (%Z)" #define FMT_SHORTDATE "%Y-%m-%d" @@ -148,6 +148,7 @@ struct cgit_config { int enable_index_links; int enable_log_filecount; int enable_log_linecount; + int local_time; int max_repo_count; int max_commit_count; int max_lock_attempts; -- cgit v1.2.3-59-g8ed1b