emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] "Specified time is not representable" with org-timeline in


From: Carsten Dominik
Subject: Re: [Orgmode] "Specified time is not representable" with org-timeline in 4.77
Date: Mon, 18 Jun 2007 08:55:49 +0200


Thanks for your report and analysis. Will be fixed.

- Carsten

On Jun 14, 2007, at 23:15, Jonathan Moore wrote:


I am getting an error "Specified time is not representable" when calling
org-timeline.  The backtrace looks like:

  encode-time(0 0 0 0 0 0 0 0 0)
  apply(encode-time (0 0 0 0 0 0 0 0 0))
org-time-string-to-time(#("2007-05-10" 0 10 (fontified t mouse-face highlight
rear-nonsticky t keymap (keymap ... ... ... ... ...) face org-date)))
  org-get-all-dates(1 3994 no-ranges t nil 3)
  org-timeline(nil)
  call-interactively(org-timeline)

The problem occurs when org-time-string-to-string calls org-parse-time-string.
This matches with org-ts-regexp1, which has a hard-coded space, so the
10-character date string isn't parsed as you'd expect.

(org-parse-time-string "2007-05-10 ") => (0 0 0 10 5 2007 nil nil nil)
(org-parse-time-string "2007-05-10")  => (0 0 0 0 0 0 0 0 0)

A fix might be just to get rid of the space in the regexp.

Best,
Jon



_______________________________________________
Emacs-orgmode mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477





reply via email to

[Prev in Thread] Current Thread [Next in Thread]