From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Panchekha Subject: Re: Formatting dates in org-html postamble Date: Sat, 19 Nov 2016 10:09:43 -0800 Message-ID: References: <87mvgvlspd.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c07797a2571e50541ab5630 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8A5t-00051t-75 for emacs-orgmode@gnu.org; Sat, 19 Nov 2016 13:10:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8A5p-000526-6b for emacs-orgmode@gnu.org; Sat, 19 Nov 2016 13:10:29 -0500 Received: from mail-yw0-x22c.google.com ([2607:f8b0:4002:c05::22c]:35445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8A5p-00051b-0N for emacs-orgmode@gnu.org; Sat, 19 Nov 2016 13:10:25 -0500 Received: by mail-yw0-x22c.google.com with SMTP id i145so185396206ywg.2 for ; Sat, 19 Nov 2016 10:10:24 -0800 (PST) In-Reply-To: <87mvgvlspd.fsf@nicolasgoaziou.fr> 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" To: emacs-orgmode@gnu.org --94eb2c07797a2571e50541ab5630 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm sorry, let me give a full bug report: I have #+TITLE: title here > #+DATE: <2016-10-20> > in an org file, with no other "#+" lines set. In my configuration file, I have set (setf org-html-postamble-format > (list > (list > "en" > "

By %a on > .\n"))) > (setf org-html-metadata-timestamp-format "%d %B %Y") > When I publish to HTML, the date is printed directly as "<2016-10-20 Thu>". I am using Emacs 25.1.1 and Org 9.0.1. I have looked through the code, and think the error is likely on line 1882 of ox-html.el, where the date format ought to be passed to org-export-get-date as the optional second argument. As a workaround, I am currently setting org-export-date-timestamp-format, but it seems like this ought to be HTML-specific. =E2=80=94Pavel Panchekha On Sat, Nov 19, 2016 at 1:33 AM, Nicolas Goaziou wrote: > Hello, > > Pavel Panchekha writes: > > > I've been trying to set the date format in the HTML postamble. It looks > > like a date given in #+DATE is not being formatted according to the dat= e > > format specification, but if no #+DATE is given, the format specificati= on > > is used. > > > > Is this intended behavior=E2=80=94should I write formatted dates in #+D= ATE? > > We need more information to answer this. > > What exactly did you try (configured variables, #+DATE keyword ...)? > What Org version are you using? What did you expect? > > If you have some spare time, > may be a good > read. > > Regards, > > -- > Nicolas Goaziou > --94eb2c07797a2571e50541ab5630 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

In my configuration file, I ha= ve set

(setf org-h= tml-postamble-format
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (list
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 (list
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 "en"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &= quot;<p>By <a href=3D'
htt= ps://pavpanchekha.com' rel=3D'author'>%a</a> on &l= t;time>%d</time>.\n")))
(setf org-html-metadata-timestamp-format = "%d %B %Y")

When I pub= lish to HTML, the date is printed directly as "<2016-10-20 Thu>&= quot;.

I am using Emacs 25.1.1 and Org 9.0.1.

I have looked through the code, and think the error is likely on lin= e 1882 of ox-html.el, where the date format ought to be passed to org-expor= t-get-date as the optional second argument.

As a workarou= nd, I am currently setting org-export-date-timestamp-format, but it seems l= ike this ought to be HTML-specific.

=E2=80=94Pavel Panchekha

On Sat, Nov 19, 2016 at 1:33 AM, Nicolas Goa= ziou <mail@nicolasgoaziou.fr> wrote:
Hello,

Pavel Panchekha <me@pavpanchekha.= com> writes:

> I've been trying to set the date format in the HTML postamble. It = looks
> like a date given in #+DATE is not being formatted according to the da= te
> format specification, but if no #+DATE is given, the format specificat= ion
> is used.
>
> Is this intended behavior=E2=80=94should I write formatted dates in #+= DATE?

We need more information to answer this.

What exactly did you try (configured variables, #+DATE keyword ...)?
What Org version are you using? What did you expect?

If you have some spare time,
<http://www.chiark.greenend.org.uk/~s= gtatham/bugs.html> may be a good
read.

Regards,

--
Nicolas Goaziou

--94eb2c07797a2571e50541ab5630--