--- a/src/server/daemon/main.c Sun Feb 26 19:51:14 2012 +0100 +++ b/src/server/daemon/main.c Mon Feb 27 17:20:42 2012 +0100 @@ -37,6 +37,7 @@ #include "../util/pool.h" #include "../public/nsapi.h" #include "../util/plist.h" +#include "../util/date.h" #include "webserver.h" @@ -47,7 +48,10 @@ int std_pipe_fds[2]; void test() { - + time_t t = time(NULL); + pool_handle_t *pool = pool_create(); + sstr_t date = date_format_http(t, pool); + printf("%s\n", date.ptr); } /* @@ -86,7 +90,7 @@ } int main(int argc, char **argv) { - //test(); + test(); /* if the -c parameter is specified, we don't create a daemon */ int d = 0;