|
From: | Kyle Meyer |
Subject: | Re: [O] Bug: `org-timestamp-format' does not return correct time [8.2.10 (8.2.10-41-g42228a-elpa @ /home/gk/.emacs.d/packages/org-20150601/)] |
Date: | Wed, 21 Oct 2015 13:52:28 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Göktuğ Kayaalp <address@hidden> writes: > The function `org-timestamp-format' returns bad values: > > (org-timestamp-format "<2015-10-07 Wed>" "%d %B %Y") > "30 November -001" > (org-timestamp-format "[2015-10-07 Wed]" "%d %B %Y") > "30 November -001" > (org-timestamp-format "[2015-10-07]" "%d %B %Y") > "30 November -001" > (org-timestamp-format "<2015-10-07>" "%d %B %Y") > "30 November -001" > (org-timestamp-format "2015-10-07" "%d %B %Y") > "30 November -001" > (org-timestamp-format (current-time) "%d %B %Y") > "30 November -001" > (org-timestamp-format (org-parse-time-string "[2015-10-07 Wed]") > "%d %B %Y") > "30 November -001" I think this is because org-timestamp-format works with timestamp objects, as returned by org-element-context, rather than strings. -- Kyle
[Prev in Thread] | Current Thread | [Next in Thread] |