summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mrcsys2006-01-25 19:15:18 +0000
committerGravatar mrcsys2006-01-25 19:15:18 +0000
commitd2de034d35e290f68e25f33f19e5e11f5baddeca (patch)
tree1532e27844cbb9935a8f2ec0a37151a93414d35b
parent7aa4bcb19845cf3c6c799945da9a3d3057ae3a13 (diff)
downloadcsoap-d2de034d35e290f68e25f33f19e5e11f5baddeca.tar.gz
csoap-d2de034d35e290f68e25f33f19e5e11f5baddeca.tar.bz2
Some WIN32 libraries do not allow %T in strftime. WIN32 stinks.
-rw-r--r--nanohttp/nanohttp-client.c4
-rw-r--r--nanohttp/nanohttp-server.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c
index c559b26..bf01fbe 100644
--- a/nanohttp/nanohttp-client.c
+++ b/nanohttp/nanohttp-client.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-client.c,v 1.35 2006/01/19 18:00:19 mrcsys Exp $
+* $Id: nanohttp-client.c,v 1.36 2006/01/25 19:18:42 mrcsys Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -213,7 +213,7 @@ httpc_header_add_date(httpc_conn_t * conn)
/* Set date */
nw = time(NULL);
localtime_r(&nw, &stm);
- strftime(buffer, 255, "%a, %d %b %Y %T GMT", &stm);
+ strftime(buffer, 255, "%a, %d %b %Y %H:%M:%S GMT", &stm);
httpc_set_header(conn, HEADER_DATE, buffer);
}
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");