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 <stefan.naewe@atlas-elektronik.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
此提交包含在:
Stefan Naewe
2008-08-01 14:54:38 +02:00
提交者 Lars Hjemli
父節點 a1266edfe6
當前提交 0f0ab148c6
共有 7 個檔案被更改,包括 17 行新增10 行删除

3
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;