From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Randby Subject: org-export-html-date-format-string Date: Tue, 21 May 2013 13:49:24 -0400 Message-ID: <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]:46954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ueqgj-0008PB-S0 for emacs-orgmode@gnu.org; Tue, 21 May 2013 13:49:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ueqgi-0003C7-43 for emacs-orgmode@gnu.org; Tue, 21 May 2013 13:49:29 -0400 Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]:39545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ueqgh-0003Bs-VG for emacs-orgmode@gnu.org; Tue, 21 May 2013 13:49:28 -0400 Received: by mail-ie0-f178.google.com with SMTP id b11so2493445iee.37 for ; Tue, 21 May 2013 10:49:27 -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 l14sm3303023igf.9.2013.05.21.10.49.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 May 2013 10:49:26 -0700 (PDT) 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'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:

Emacs 24.2.1 (Org mode 8.0.3)

How do I get the date variable to work? Scott Randby 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 > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-export-html-date-format-string Date: Tue, 21 May 2013 20:55:32 +0200 Message-ID: <87a9nojh7f.fsf@gmail.com> References: <519BB3A4.2010100@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uerie-0008Dn-Az for emacs-orgmode@gnu.org; Tue, 21 May 2013 14:55:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ueric-0002XX-Ul for emacs-orgmode@gnu.org; Tue, 21 May 2013 14:55:32 -0400 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:35939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ueric-0002XJ-Pp for emacs-orgmode@gnu.org; Tue, 21 May 2013 14:55:30 -0400 Received: by mail-we0-f169.google.com with SMTP id q55so583556wes.14 for ; Tue, 21 May 2013 11:55:29 -0700 (PDT) In-Reply-To: <519BB3A4.2010100@gmail.com> (Scott Randby's message of "Tue, 21 May 2013 13:49:24 -0400") 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: Scott Randby Cc: emacs-orgmode@gnu.org Hello, Scott Randby writes: > I'm having trouble customizing the variable > org-export-html-date-format-string. Use `org-html-metadata-timestamp-format' instead. Regards, -- Nicolas Goaziou 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 15:36:14 -0400 Message-ID: <519BCCAE.3050906@gmail.com> References: <519BB3A4.2010100@gmail.com> <87a9nojh7f.fsf@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]:52625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UesM8-0007Cu-4t for emacs-orgmode@gnu.org; Tue, 21 May 2013 15:36:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UesM7-0008VU-5L for emacs-orgmode@gnu.org; Tue, 21 May 2013 15:36:20 -0400 Received: from mail-ie0-x22c.google.com ([2607:f8b0:4001:c03::22c]:52547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UesM6-0008VL-Vp for emacs-orgmode@gnu.org; Tue, 21 May 2013 15:36:19 -0400 Received: by mail-ie0-f172.google.com with SMTP id 16so2872882iea.17 for ; Tue, 21 May 2013 12:36:18 -0700 (PDT) In-Reply-To: <87a9nojh7f.fsf@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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On 05/21/2013 02:55 PM, Nicolas Goaziou wrote: > Hello, > > Scott Randby writes: > >> I'm having trouble customizing the variable >> org-export-html-date-format-string. > > Use `org-html-metadata-timestamp-format' instead. Thanks. This worked after I replaced %d with %T in the format string for org-html-postamble-format. > > > Regards, >