[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Problem with org-time-stamp & co
From: |
Bastien |
Subject: |
Re: [Orgmode] Problem with org-time-stamp & co |
Date: |
Fri, 18 Feb 2011 10:17:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Michael,
Michael Käufl <address@hidden> 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,
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)))
--
Bastien