-/*
- * $Id$
- */
-/**
- * \defgroup HTTPDateTime Function to generate HTTP-compliant textual time/date stamp
- * (This module was lifted directly from the Citadel server source)
- *
- * \ingroup WebcitHttpServer
- */
-/*@{*/
#include "webcit.h"
/** HTTP Months - do not translate - these are not for human consumption */
time_t now;
now = time(NULL);
+#ifdef HAVE_SOLARIS_LOCALTIME_R
+ asctime_r(localtime(&now), buf, sizeof(buf));
+#else
asctime_r(localtime(&now), buf);
+#endif
bufused = strlen(buf);
if ((bufused > 0) && (buf[bufused - 1] == '\n')) {
buf[bufused - 1] = '\0';
RegisterNamespace("DATE:NOW:STR", 0, 0, tmplput_nowstr, NULL, CTX_NONE);
RegisterNamespace("DATE:NOW:NO", 0, 0, tmplput_nowno, NULL, CTX_NONE);
}
-
-/*@}*/