Gilles Detillieux (email@example.com)
Wed, 10 Feb 1999 15:31:48 -0600 (CST)
D'oh! I just noticed that the following patch for htnotify.cc didn't make
it into the source for 3.1.0, though the change to the documentation that
describes it did. That means htnotify doesn't work quite as documented.
With this fix, it will recognize an ISO 8601 date (yyyy-mm-dd) even if
iso_8601 isn't set, as long as a four-digit year is given. Without this
fix, it would treat ambiguous cases as yyyy-dd-mm instead.
--- htdig-3.1.0-020799/htnotify/htnotify.cc.gilles Fri Feb 5 19:17:47 1999
+++ htdig-3.1.0-020799/htnotify/htnotify.cc Mon Feb 8 13:09:57 1999
@@ -319,6 +319,11 @@
// Default to American standard when not specified in conf,
// so expect mm dd [yy]yy.
sscanf(scandate.get(), "%d%d%d", &mm, &dd, &yy);
+ if (mm > 31 && dd <= 12 && yy <= 31)
+ // probably got yyyy-mm-dd instead of mm/dd/yy
+ t = mm; mm = dd; dd = yy; yy = t;
// OK, we took our best guess at the order the y, m & d should be.
I'll be including this patch in the RPMs that I'm in the process of building.
-- Gilles R. Detillieux E-mail: <firstname.lastname@example.org> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 ------------------------------------ To unsubscribe from the htdig mailing list, send a message to email@example.com containing the single word "unsubscribe" in the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Wed Feb 10 1999 - 17:09:06 PST