Move cgit_print_date into ui-shared, reuse in ui-summary

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Este commit está contenido en:
Lars Hjemli
2006-12-16 00:33:28 +01:00
padre 9a8f88658d
commit 148fb9622c
Se han modificado 4 ficheros con 24 adiciones y 20 borrados

Ver fichero

@@ -60,6 +60,18 @@ char *cgit_pageurl(const char *reponame, const char *pagename,
}
}
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_docstart(char *title, struct cacheitem *item)
{
html("Content-Type: text/html; charset=utf-8\n");