From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Formatting dates in org-html postamble Date: Sat, 19 Nov 2016 23:19:18 +0100 Message-ID: <87d1hrkt95.fsf@nicolasgoaziou.fr> References: <87mvgvlspd.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8Dyi-0002Xx-0A for emacs-orgmode@gnu.org; Sat, 19 Nov 2016 17:19:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8Dyg-0000jc-SV for emacs-orgmode@gnu.org; Sat, 19 Nov 2016 17:19:20 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:47327) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c8Dyg-0000jN-M7 for emacs-orgmode@gnu.org; Sat, 19 Nov 2016 17:19:18 -0500 In-Reply-To: (Pavel Panchekha's message of "Sat, 19 Nov 2016 10:09:43 -0800") 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: Pavel Panchekha Cc: emacs-orgmode@gnu.org Hello, Pavel Panchekha writes: > 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 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. Fixed. Thank you for the report and the analysis. Regards, -- Nicolas Goaziou