[1468] in Coldmud discussion meeting
Re: driver.log not y2k-compliant
daemon@ATHENA.MIT.EDU (Wed Nov 10 15:56:26 1999
)
From: "Bruce Mitchener, Jr." <bruce@puremagic.com>
To: <coldstuff@cold.org>
Date: Wed, 10 Nov 1999 12:37:20 -0800
Reply-To: coldstuff@cold.org
>i overheard somebody on tCD (Bruce?) say how y2k was on the agenda for
>some meeting today, and thought of the driver.log..
(this was a meeting for me at work)
>an excerpt from my (tiny) core's driver.log:
>[10 Nov 99 13:03] Caught signal 15: TERM
>
>yes, i shut it down with kill, but still, two digit years?
>
>i'd make a patch for this, but i'm not sure what to make it do..
>personally i'd like ctime() format, but there are other perfectly good,
>valid formats..
Not changing formats .. the easy fix is to make some changes to timestamp()
in util.c:
319 sprintf(s, "%d %3s %4d %d:%.2d",
320 tms->tm_mday,
321 months[tms->tm_mon],
322 tms->tm_year + 1900,
323 tms->tm_hour,
324 tms->tm_min);
That replacement for lines 319 through 324 would fix the problem. The only
user of timestamp() in the source is the stuff in log.c (which would make it
a nice candidate for moving out of util.c and into log.c).
- Bruce