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:
Stefan Naewe
2008-08-01 14:54:38 +02:00
zatwierdzone przez Lars Hjemli
rodzic a1266edfe6
commit 0f0ab148c6
7 zmienionych plików z 17 dodań i 10 usunięć

3
cgit.h
Wyświetl plik

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