From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Randby Subject: Re: org-export-html-date-format-string Date: Tue, 21 May 2013 14:51:53 -0400 Message-ID: <519BC249.9050801@gmail.com> References: <519BB3A4.2010100@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UerfD-0006fL-Og for emacs-orgmode@gnu.org; Tue, 21 May 2013 14:52:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UerfC-00017n-KF for emacs-orgmode@gnu.org; Tue, 21 May 2013 14:51:59 -0400 Received: from mail-ie0-x234.google.com ([2607:f8b0:4001:c03::234]:34533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UerfC-00017j-Et for emacs-orgmode@gnu.org; Tue, 21 May 2013 14:51:58 -0400 Received: by mail-ie0-f180.google.com with SMTP id ar20so2782584iec.11 for ; Tue, 21 May 2013 11:51:57 -0700 (PDT) Received: from [192.168.1.111] (cpe-24-165-203-246.neo.res.rr.com. [24.165.203.246]) by mx.google.com with ESMTPSA id ct8sm3540860igb.7.2013.05.21.11.51.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 May 2013 11:51:56 -0700 (PDT) In-Reply-To: <519BB3A4.2010100@gmail.com> 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: emacs-orgmode@gnu.org I solved the problem by putting the following in the file to be exported: #+DATE: [2013-05-21 Tue 14:45] However, this means I have to remember to change the date every time I export. Is there an easier way to do this? Scott Randby On 05/21/2013 01:49 PM, Scott Randby wrote: > I'm having trouble customizing the variable > org-export-html-date-format-string. Before I tried to customize it, I > would get the date in the postamble when I exported to html: > >

Created: 2013-05-21 Tue 12:44

> > The original string for the variable is: %Y-%m-%dT%R%z > > I don't want this string, so I changed it to %F%T%Z which didn't give > any date when I exported. So I changed the string to %Y-%m-%d and still > had no date after export. Changing back to the default string doesn't > work either. > > This seems like a bug. Here is what is in my init.el after customization: > > '(org-export-html-date-format-string "%Y-%m-%dT%R%z") > > '(org-html-postamble t) > > '(org-html-postamble-format (quote (("en" "

Author: > %a

Date: %d

%c

")))) > > Here is the html of the postamble after export: > >
>

Author: Scott P. Randby

>

Date:

>

href="http://www.gnu.org/software/emacs/">Emacs 24.2.1 ( href="http://orgmode.org">Org mode 8.0.3)

>
> > How do I get the date variable to work? > > Scott Randby >