From: Ralph Corderoy Date: Sun, 23 Apr 2017 08:19:13 +0000 (+0100) Subject: sbr/dtimep.l: Remove always false `europeandate' flag. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/52cfdad5862a445c59093edd504338f4e762057c?hp=1dd5d4f0686b560d0bfe86a03000675a11d3ce15 sbr/dtimep.l: Remove always false `europeandate' flag. Switched from reverse-podium MM/DD/YY interpretation to DD/MM/YY. Never set so conditional code unused. --- diff --git a/sbr/dtimep.l b/sbr/dtimep.l index 4f8d8319..d2483769 100644 --- a/sbr/dtimep.l +++ b/sbr/dtimep.l @@ -51,14 +51,6 @@ tw.tw_year += 100; \ return(&tw) -/* - * Patchable flag that says how to interpret NN/NN/NN dates. When - * true, we do it European style: DD/MM/YY. When false, we do it - * American style: MM/DD/YY. Of course, these are all non-RFC822 - * compliant. - */ -int europeandate = 0; - /* * Table to convert month names to numeric month. We use the * fact that the low order 5 bits of the sum of the 2nd & 3rd @@ -323,17 +315,10 @@ nl [ \t\n()] } {D}("-"|"/"){D}("-"|"/"){YEAR}{W}{TIME} { INIT(); - if(europeandate) { - /* DD/MM/YY */ - SETDAY(); - SKIPTOD(); - SETMON_NUM(); - } else { - /* MM/DD/YY */ + /* MM/DD/YY */ SETMON_NUM(); SKIPTOD(); SETDAY(); - } SKIPTOD(); SETYEAR(); SKIPTOD(); @@ -341,17 +326,10 @@ nl [ \t\n()] } {D}("-"|"/"){D}("-"|"/"){YEAR} { INIT(); - if(europeandate) { - /* DD/MM/YY */ - SETDAY(); - SKIPTOD(); - SETMON_NUM(); - } else { - /* MM/DD/YY */ + /* MM/DD/YY */ SETMON_NUM(); SKIPTOD(); SETDAY(); - } SKIPTOD(); SETYEAR(); }