From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler 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: Sat, 13 Oct 2012 10:12:21 +0200 Message-ID: <20121013081221.GA8868@boo.workgroup> References: <20121011125146.GA24007@boo.workgroup> <20121012151423.GC14562@boo.workgroup> <87sj9j1wv9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMwqi-0001fM-Jl for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 04:13:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMwqh-0006Xq-M9 for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 04:13:32 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:53793) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TMwqh-0006Xd-Be for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 04:13:31 -0400 Content-Disposition: inline In-Reply-To: <87sj9j1wv9.fsf@gmail.com> 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 Hi Nicolas, * Nicolas Goaziou [12. Oct. 2012]: > 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" For me this is about the date/time prompt when capturing. I had a look at org-time-stamp and had the impression that the actual parsing of the users input is done in org-read-date. But obviously my basic elisp knowledge isn't up to such complex functions. Back to square one: Does anybody know How to customise Emacs/org-mode so that dotted European dates are parsed correctly at the date/time prompt? Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-