Diffstat (limited to 'ui-commit.c')
| -rw-r--r-- | ui-commit.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui-commit.c b/ui-commit.c index 2d38f0b..1c0e7e5 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -1,5 +1,16 @@ #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; |