From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-read-date: problem with year in dotted european date input [7.9.2 (release_7.9.2-436-g9b11e6 @ /home/grfz/src/org-mode/lisp/)] Date: Fri, 12 Oct 2012 18:24:58 +0200 Message-ID: <87sj9j1wv9.fsf@gmail.com> References: <20121011125146.GA24007@boo.workgroup> <20121012151423.GC14562@boo.workgroup> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMi6G-0006sJ-D0 for emacs-orgmode@gnu.org; Fri, 12 Oct 2012 12:28:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMi6F-0005nA-Ej for emacs-orgmode@gnu.org; Fri, 12 Oct 2012 12:28:36 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:34382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMi6F-0005n5-8V for emacs-orgmode@gnu.org; Fri, 12 Oct 2012 12:28:35 -0400 Received: by mail-wg0-f49.google.com with SMTP id gg4so1915850wgb.30 for ; Fri, 12 Oct 2012 09:28:34 -0700 (PDT) In-Reply-To: <20121012151423.GC14562@boo.workgroup> (Gregor Zattler's message of "Fri, 12 Oct 2012 17:14:23 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Hello, Gregor Zattler writes: > I now believe I found a bug in org-read-date. There is a problem > parsing European dotted dates. In Dates the like DD.MM.YYYY or > DD.MM.YY or DD.MM. `MM' is recognised as year instead of month: > > Today is 2012-10-11: > > (org-read-date t nil "Kommt am 27.10.2012 um 14:00 Uhr") > gives > "2010-10-27" > expectet outcome is > "2012-10-27" AFAICT `org-read-date' expects a date string alone, not a date string in the middle of some text. (org-read-date t nil "12.10.") => "2012-10-12" Regards, -- Nicolas Goaziou