Ticket #2092 (new enhancement)

Opened 3 years ago

Last modified 1 year ago

pattern date format is ambiguous

Reported by: thomasz@hostmaster.org Assigned to: mutt-dev
Priority: minor Milestone:
Component: mutt Version: 1.5.10
Keywords: Cc: thomasz@hostmaster.org

Description

Pattern matching currently uses a date format of DD/MM/YYYY which is prone to confusion with MM/DD/YYYY in english speaking countries.
>How-To-Repeat:
>Fix:
ISO-8601 recommends YYYY-MM-DD to be used, but this would require current "date1 - date2" syntax to be changed.

Attachments

patch-1.5.11.tamo.iso8601.1 (1.8 kB) - added by on 2007-03-27 11:07:24.
patch-1.5.11.tamo.iso8601.1

Change History

2005-09-27 01:10:57 changed by Vincent Lefevre <vincent@vinc17.org>

On 2005-09-26 04:03:18 +0200, New Mutt PR wrote:
> ISO-8601 recommends YYYY-MM-DD to be used, but this would require
> current "date1 - date2" syntax to be changed.

I suggest keeping the current syntax, and *adding* alternative ones.
In ISO 8601, the "-" is optional. So, one could write YYYMMDD for a
date and YYYYMMDD-YYYYMMDD for a date range. To allow abbreviated
dates, one could have the following rules:

1. When the number has 3 or 4 digits, then this means month (on 1 or 2
digits) and date.

2. When the number has 6 digits, then this means YYMMDD, with a year
on 2 digits.

Also, when the first number has at least 3 digits (meaning ISO-8601
format, possibly abbreviated), one could allow / to be the range
separator, as in ISO 8601.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

2005-09-27 04:21:01 changed by tamo

On 2005-09-26 04:03:18 +0200, New Mutt PR wrote:
 Uploading a patch to allow 20050927, 050927, 0927, 927 and 27.
Be careful. This patch was created with a sleepy brain...zzz

2007-03-27 11:07:24 changed by

  • attachment patch-1.5.11.tamo.iso8601.1 added.

patch-1.5.11.tamo.iso8601.1

2007-03-31 15:18:15 changed by vinc17

  • summary changed from pattern date format is ambigous to pattern date format is ambiguous.