--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [IRCServices] Re: DALnet-src: Y2K bug in the ircd (dreamforge and below)
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Re%3A%20DALnet-src%3A%20Y2K%20bug%20in%20the%20ircd%20%28dreamforge%20and%20below%29&In-Reply-To=">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="000401.html">
+ <LINK REL="Next" HREF="000405.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[IRCServices] Re: DALnet-src: Y2K bug in the ircd (dreamforge and below)</H1>
+ <B>Andrew Church</B>
+ <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Re%3A%20DALnet-src%3A%20Y2K%20bug%20in%20the%20ircd%20%28dreamforge%20and%20below%29&In-Reply-To="
+ TITLE="[IRCServices] Re: DALnet-src: Y2K bug in the ircd (dreamforge and below)">achurch at dragonfire.net
+ </A><BR>
+ <I>Mon Jan 3 11:24:21 PST 2000</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000401.html">[IRCServices] DreamForge 4.6.7
+</A></li>
+ <LI>Next message: <A HREF="000405.html">[IRCServices] DreamForge 4.6.7
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#402">[ date ]</a>
+ <a href="thread.html#402">[ thread ]</a>
+ <a href="subject.html#402">[ subject ]</a>
+ <a href="author.html#402">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>>><i> Well my bug is in the date() function (s_misc.c), where the reply string
+</I>>><i> is generated:
+</I>>><i>
+</I>>><i> (void)sprintf(buf, "%s %s %d 19%02d -- %02d:%02d %c%02d:%02d",
+</I>>><i> weekdays[lt->tm_wday], months[lt->tm_mon],lt->tm_mday,
+</I>>><i> lt->tm_year, lt->tm_hour, lt->tm_min,
+</I>>><i> plus, minswest/60, minswest%60);
+</I>>><i>
+</I>>><i> The "19", for the centuary, is hardcoded.
+</I>
+<rant>
+ Is it just me, or is this so completely braindead it's not even funny?
+Even assuming this is left over from the original ircd, that's still
+post-1990 code, and it would have taken some major guts (or stupidity) to
+assume that that code would no longer be in use by 2000. It doesn't even
+take any extra effort to write "%04d" and "lt->tm_year+1900" instead.
+
+ _This_ is why programming should be left to experts.
+</rant>
+
+ --Andrew Church
+ <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">achurch at dragonfire.net</A>
+ <A HREF="http://achurch.dragonfire.net/">http://achurch.dragonfire.net/</A>
+---------------------------------------------------------------
+To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
+with "unsubscribe ircservices" in the body, without the quotes.
+
+</PRE>
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000401.html">[IRCServices] DreamForge 4.6.7
+</A></li>
+ <LI>Next message: <A HREF="000405.html">[IRCServices] DreamForge 4.6.7
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#402">[ date ]</a>
+ <a href="thread.html#402">[ thread ]</a>
+ <a href="subject.html#402">[ subject ]</a>
+ <a href="author.html#402">[ author ]</a>
+ </LI>
+ </UL>
+
+</body></html>