mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 06:15:08 +00:00
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>
This commit is contained in:
committed by
Lars Hjemli
parent
a1266edfe6
commit
0f0ab148c6
3
cgit.h
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;
|
||||
|
Reference in New Issue
Block a user