hypermail should use the standard date format by default

---------

From: Eduardo Pérez Ureta (eperez@dei.inf.uc3m.es)
Date: Mon Mar 19 2001 - 17:54:29 CST


ISO 8601 NOW! http://www.cl.cam.ac.uk/~mgk25/iso-time.html

hypermail should use the standard date format
and refer time to UTC by default

--- hypermail-old/src/date.c Sat Mar 3 02:29:35 2001
+++ hypermail/src/date.c Sun Mar 18 12:15:31 2001
@@ -94,9 +94,13 @@
         if (set_eurodate)
             strftime(s, DATESTRLEN, "%a %d %b %Y - %H:%M:%S",
                      localtime(&tp));
- else
+ else if (set_americandate)
             strftime(s, DATESTRLEN, "%a %b %d %Y - %H:%M:%S",
                      localtime(&tp));
+ else
+ strftime(s, DATESTRLEN, "%Y-%m-%dZ%H:%M:%S",
+ gmtime(&tp));
+
 
         sprintf(s, "%s %s", s, timezonestr);
     }
@@ -155,9 +159,12 @@
         if (set_eurodate)
             strftime(date, DATESTRLEN, "%a %d %b %Y - %H:%M:%S %Z",
                      localtime(&yearsecs));
- else
+ else if (set_americandate)
             strftime(date, DATESTRLEN, "%a %b %d %Y - %H:%M:%S %Z",
                      localtime(&yearsecs));
+ else
+ strftime(date, DATESTRLEN, "%Y-%m-%dZ%H:%M:%S",
+ gmtime(&yearsecs));
     }
     return date;
 }
--- hypermail-old/src/setup.c Wed Mar 14 19:28:00 2001
+++ hypermail/src/setup.c Sun Mar 18 12:15:31 2001
@@ -33,6 +33,7 @@
 bool set_indextable;
 bool set_iquotes;
 bool set_eurodate;
+bool set_americandate;
 bool set_require_msgids;
 bool set_discard_dup_msgids;
 bool set_usemeta;
@@ -216,7 +217,11 @@
 
     {"eurodate", &set_eurodate, BFALSE, CFG_SWITCH,
      "# Set this to On to display article received dates with\n"
- "# days before months instead of months before days.\n"},
+ "# days before months.\n"},
+
+ {"americandate", &set_americandate, BFALSE, CFG_SWITCH,
+ "# Set this to On to display article received dates with\n"
+ "# months before days.\n"},
 
     {"discard_dup_msgids", &set_discard_dup_msgids, BTRUE, CFG_SWITCH,
      "# Set this to Off to accept messages with a Message-ID matching\n"
@@ -755,6 +760,7 @@
     printf("set_indextable = %d\n",set_indextable);
     printf("set_iquotes = %d\n",set_iquotes);
     printf("set_eurodate = %d\n",set_eurodate);
+ printf("set_americandate = %d\n",set_americandate);
     printf("set_require_msgids = %d\n",set_require_msgids);
     printf("set_discard_dup_msgids = %d\n",set_discard_dup_msgids);
     printf("set_usemeta = %d\n",set_usemeta);
--- hypermail-old/src/setup.h Wed Mar 14 19:28:00 2001
+++ hypermail/src/setup.h Sun Mar 18 12:15:31 2001
@@ -57,6 +57,7 @@
 extern bool set_indextable;
 extern bool set_iquotes;
 extern bool set_eurodate;
+extern bool set_americandate;
 extern bool set_require_msgids;
 extern bool set_discard_dup_msgids;
 extern bool set_usemeta;


---------

This archive was generated by hypermail 2.1.5.