mirror of
https://git.zx2c4.com/cgit
synced 2025-08-30 22:49:41 +02: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:
parent
a1266edfe6
commit
0f0ab148c6
7 changed files with 17 additions and 10 deletions
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue