]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
Move cgit_print_date into ui-shared, reuse in ui-summary
[ps-cgit] / ui-commit.c
index 1c0e7e5f593361e19712070e0367886eb99e1830..2d38f0b836a5af0e55c5140411ac7a58cb4f9030 100644 (file)
@@ -1,16 +1,5 @@
 #include "cgit.h"
 
 #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;
 void cgit_print_commit(const char *hex)
 {
        struct commit *commit;