From: kostas <> Date: Tue, 21 Oct 1997 22:06:26 +0000 (+0000) Subject: added local time output option X-Git-Tag: SQUID_3_0_PRE1~4747 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6aa1a5cda400af363a7ef4f2fb38c142f387152;p=thirdparty%2Fsquid.git added local time output option --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 8945807beb..a0b7dca34e 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.80 1997/10/21 03:33:41 wessels Exp $ + * $Id: errorpage.cc,v 1.81 1997/10/21 16:06:26 kostas Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -145,10 +145,14 @@ errorConvert(char token, ErrorState * err) snprintf(buf, CVT_BUF_SZ, "%s", getMyHostname()); p = buf; break; + case 't': + xstrncpy(buf, 128 , mkhttpdlogtime(squid_curtime)); + p=buf; + break; /* - * e - errno x + * e - errno x * E - strerror() x - * t - local time + * t - local time x * T - UTC * c - Squid error code * I - server IP address