/*
- * $Id: rfc1123.c,v 1.12 1998/01/05 00:57:53 wessels Exp $
+ * $Id: rfc1123.c,v 1.13 1998/01/07 22:45:23 wessels Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
tm.tm_mday = make_num(s);
tm.tm_mon = make_month(s + 3);
tm.tm_year = make_num(s + 7);
+ /*
+ * Y2K: Arjan de Vet <Arjan.deVet@adv.IAEhv.nl>
+ * if tm.tm_year < 70, assume it's after the year 2000.
+ */
+ if (tm.tm_year < 70)
+ tm.tm_year += 100;
tm.tm_hour = make_num(s + 10);
tm.tm_min = make_num(s + 13);
tm.tm_sec = make_num(s + 16);
/*
- * $Id: cachemgr.cc,v 1.65 1997/11/12 23:36:23 wessels Exp $
+ * $Id: cachemgr.cc,v 1.66 1998/01/07 22:45:25 wessels Exp $
*
* DEBUG: section 0 CGI Cache Manager
* AUTHOR: Harvest Derived
static void
print_trailer(void)
{
- static char tbuf[128];
- struct tm *gmt;
-
- gmt = gmtime(&now);
- strftime(tbuf, 128, "%A, %d-%b-%y %H:%M:%S GMT", gmt);
-
printf("<HR>\n");
printf("<ADDRESS>\n");
printf("Generated %s, by %s/%s@%s\n",
- tbuf, progname, SQUID_VERSION, getfullhostname());
+ mkrfc1123(now), progname, SQUID_VERSION, getfullhostname());
printf("</ADDRESS></BODY></HTML>\n");
}
/*
- * $Id: debug.cc,v 1.55 1998/01/05 21:44:40 wessels Exp $
+ * $Id: debug.cc,v 1.56 1998/01/07 22:45:25 wessels Exp $
*
* DEBUG: section 0 Debug Routines
* AUTHOR: Harvest Derived
static time_t last_t = 0;
if (t != last_t) {
tm = localtime(&t);
- strftime(buf, 127, "%y/%m/%d %H:%M:%S", tm);
+ strftime(buf, 127, "%Y/%m/%d %H:%M:%S", tm);
last_t = t;
}
return buf;