emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Yaniv Gilad <yanivdll@gmail.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87d1vfhi9i.fsf@kyleam.com> (raw)
In-Reply-To: <8BB8B1B0-E16C-4D16-B7E6-C0602C687B4D@gmail.com> (Yaniv Gilad's message of "Thu, 12 Nov 2015 00:06:34 -0500")

Hi Yaniv,

[You forgot to include the list.  Adding now.]

Yaniv Gilad <yanivdll@gmail.com> writes:

> I’m seeing the same issue:
>
>  (let ((properties (org-export-get-environment)))
>         (princ (json-encode 
>                 (list 
>                  :date (org-timestamp-format (car (plist-get properties :date)) "%Y-%m-%d")
>                  :author (substring-no-properties (car (plist-get properties :author)))
>                  :category (cdr (assoc "CATEGORY" org-file-properties))
>                  :post (org-export-as backend nil nil t)
>                  :title (substring-no-properties (car (plist-get properties :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

-- 
Kyle

       reply	other threads:[~2015-11-12  5:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8BB8B1B0-E16C-4D16-B7E6-C0602C687B4D@gmail.com>
2015-11-12  5:57 ` Kyle Meyer [this message]
2015-10-21 16:42 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/)] Göktuğ Kayaalp
2015-10-21 17:52 ` Kyle Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1vfhi9i.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yanivdll@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).