emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Jonathan Moore
Subject: [Orgmode] "Specified time is not representable" with org-timeline in 4.77
Date: Thu, 14 Jun 2007 21:15:04 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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





reply via email to

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