found 562485 coreutils/8.5-1
kthxbye

Okay, I've found some interesting things that seem to demonstrate the
problem better.

  lakeview ok % date; date -d"a fortnight ago"; date -d"b fortnight ago"; date 
-d"1 fortnight ago"; date -d"1 fortnight ago a"; date -d"14 days ago"
  Sun Feb 27 17:28:09 UTC 2011
  Sun Feb 13 18:28:09 UTC 2011
  Sun Feb 13 19:28:09 UTC 2011
  Sun Feb 13 17:28:09 UTC 2011
  Sun Feb 13 18:28:09 UTC 2011
  Sun Feb 13 17:28:09 UTC 2011

The issue here is that date is treating "a" and "b" as US military time
zone specifiers. A is UTC+01:00 and B is UTC+02:00.  This happens to
clash with the use of the article "a" in English.  I think the
reasonable thing to do here is to treat "a" as an article (that is, ==
1) if it proceeds a noun and a time zone specifier otherwise.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature

Reply via email to