From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: 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: Thu, 12 Nov 2015 00:57:29 -0500 Message-ID: <87d1vfhi9i.fsf@kyleam.com> References: <8BB8B1B0-E16C-4D16-B7E6-C0602C687B4D@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwkt8-0007cM-EQ for emacs-orgmode@gnu.org; Thu, 12 Nov 2015 00:57:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwkt7-0003D7-9O for emacs-orgmode@gnu.org; Thu, 12 Nov 2015 00:57:38 -0500 Received: from mail-vk0-x229.google.com ([2607:f8b0:400c:c05::229]:33956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwkt7-0003D0-4S for emacs-orgmode@gnu.org; Thu, 12 Nov 2015 00:57:37 -0500 Received: by vkgy188 with SMTP id y188so4569918vkg.1 for ; Wed, 11 Nov 2015 21:57:36 -0800 (PST) In-Reply-To: <8BB8B1B0-E16C-4D16-B7E6-C0602C687B4D@gmail.com> (Yaniv Gilad's message of "Thu, 12 Nov 2015 00:06:34 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Yaniv Gilad Cc: emacs-orgmode@gnu.org Hi Yaniv, [You forgot to include the list. Adding now.] Yaniv Gilad writes: > I=E2=80=99m seeing the same issue: > > (let ((properties (org-export-get-environment))) > (princ (json-encode=20 > (list=20 > :date (org-timestamp-format (car (plist-get properties := date)) "%Y-%m-%d") > :author (substring-no-properties (car (plist-get propert= ies :author))) > :category (cdr (assoc "CATEGORY" org-file-properties)) > :post (org-export-as backend nil nil t) > :title (substring-no-properties (car (plist-get properti= es :title)))))))))) org-timestamp-format takes an element, not a string. See the two posts below. http://article.gmane.org/gmane.emacs.orgmode/102033 http://article.gmane.org/gmane.emacs.orgmode/102018 --=20 Kyle