From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Problem with org-time-stamp & co Date: Fri, 18 Feb 2011 10:17:51 +0100 Message-ID: <87fwrlg0qo.fsf@gnu.org> References: <201102171615.43058.org-mode@lists.michael-kaeufl.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=40952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqMTE-0003cD-1K for emacs-orgmode@gnu.org; Fri, 18 Feb 2011 04:17:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PqMTC-0004Ji-DA for emacs-orgmode@gnu.org; Fri, 18 Feb 2011 04:17:47 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:62932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PqMTC-0004JP-8d for emacs-orgmode@gnu.org; Fri, 18 Feb 2011 04:17:46 -0500 Received: by fxm12 with SMTP id 12so3637865fxm.0 for ; Fri, 18 Feb 2011 01:17:45 -0800 (PST) In-Reply-To: <201102171615.43058.org-mode@lists.michael-kaeufl.de> ("Michael =?iso-8859-1?Q?K=E4ufl=22's?= message of "Thu, 17 Feb 2011 16:15:42 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael =?iso-8859-1?Q?K=E4ufl?= Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Michael, Michael Käufl writes: > I tried to enter a date before 01/01/1970 using “C-c .” (org-time-stamp) and > org replaced the year by 2011. (The same problem occurs with org-time-stamp- > inactive and the C-u prefixed variants.) > > Although I guess that this is related to the unix time, which starts on > 01/01/1970 00:00, my lisp skills aren't good enough to let me find the > responsible code line. > > Maybe there is someone who can fix this or tell me that it's a feature, not a > bug;) The attached patch allows dates before 1970. I tested it and I didn't see any side-effect so far -- but there must a good reason why we have this limitation. Carsten, could you tell where this limitation is necessary? Thanks, --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=org.el.patch diff --git a/lisp/org.el b/lisp/org.el index 655d106..bdd808d 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14667,7 +14667,6 @@ user." (nth 2 tl)) (setq org-time-was-given t)) (if (< year 100) (setq year (+ 2000 year))) - (if (< year 1970) (setq year (nth 5 defdecode))) ; not representable (setq org-read-date-analyze-futurep futurep) (list second minute hour day month year))) --=-=-= Content-Type: text/plain -- Bastien --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--