mirror of
https://git.zx2c4.com/cgit
synced 2025-09-04 16:25:11 +00:00
Move cgit_print_date into ui-shared, reuse in ui-summary
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
11
ui-commit.c
11
ui-commit.c
@@ -1,16 +1,5 @@
|
||||
#include "cgit.h"
|
||||
|
||||
void cgit_print_date(unsigned long secs)
|
||||
{
|
||||
char buf[32];
|
||||
struct tm *time;
|
||||
|
||||
time = gmtime(&secs);
|
||||
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time);
|
||||
html_txt(buf);
|
||||
|
||||
}
|
||||
|
||||
void cgit_print_commit(const char *hex)
|
||||
{
|
||||
struct commit *commit;
|
||||
|
Reference in New Issue
Block a user