From Knut.Syed@nhh.no Fri Sep 11 10:23:18 1998 Date: 11 Sep 1998 11:31:18 +0200 From: "Knut A. Syed" To: htdig@sdsu.edu Subject: htdig: ht://Dig 3.1.0b1 and ISO-8601 Could you please include support for representation of dates and times according to ISO 8601¹? To support ISO 8601 exclusively I use the following patches, but I believe this should configureable at compile-time or run-time. --- htsearch/Display.cc.ORIG Fri Sep 11 11:07:32 1998 +++ htsearch/Display.cc Fri Sep 11 11:24:39 1998 @@ -248,7 +248,8 @@ { struct tm *tm = localtime(&t); // strftime(buffer, sizeof(buffer), "%e-%h-%Y", tm); - strftime(buffer, sizeof(buffer), "%x", tm); + // ISO 8601. ~kas + strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S %Z", tm); *str << buffer; } vars.Add("MODIFIED", str); --- htnotify/htnotify.cc.ORIG Fri Sep 11 11:13:52 1998 +++ htnotify/htnotify.cc Fri Sep 11 11:26:19 1998 @@ -141,7 +141,8 @@ } int month, day, year; - sscanf(date, "%d/%d/%d", &month, &day, &year); + // ISO 8601. ~kas + sscanf(date, "%d-%d-%d", &year, &month, &day); if (year > 1900) year -= 1900; Thank you for a great product! ~kas ¹ ---------------------------------------------------------------------- To unsubscribe from the htdig mailing list, send a message to htdig-request@sdsu.edu containing the single word "unsubscribe" in the body of the message.