From d2de034d35e290f68e25f33f19e5e11f5baddeca Mon Sep 17 00:00:00 2001 From: mrcsys Date: Wed, 25 Jan 2006 19:15:18 +0000 Subject: Some WIN32 libraries do not allow %T in strftime. WIN32 stinks. --- nanohttp/nanohttp-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nanohttp/nanohttp-server.c') diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c index e9504f6..24a8333 100644 --- a/nanohttp/nanohttp-server.c +++ b/nanohttp/nanohttp-server.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-server.c,v 1.46 2006/01/19 18:00:19 mrcsys Exp $ +* $Id: nanohttp-server.c,v 1.47 2006/01/25 19:15:18 mrcsys Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -306,7 +306,7 @@ httpd_send_header (httpd_conn_t * res, int code, const char *text) /* set date */ nw = time (NULL); localtime_r (&nw, &stm); - strftime (buffer, 255, "Date: %a, %d %b %Y %T GMT", &stm); + strftime (buffer, 255, "Date: %a, %d %b %Y %H:%M:%S GMT", &stm); strcat (header, buffer); strcat (header, "\r\n"); -- cgit v1.1-32-gdbae