From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Customizing Timestamps in html Export. Date: Tue, 02 Dec 2014 10:45:40 +0100 Message-ID: <87tx1el70b.fsf@nicolasgoaziou.fr> References: <5475B84D.2060407@wilkesley.net> <547C5AF9.3060302@wilkesley.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xvk0u-0003bR-8I for emacs-orgmode@gnu.org; Tue, 02 Dec 2014 04:45:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xvk0n-0006WR-0E for emacs-orgmode@gnu.org; Tue, 02 Dec 2014 04:44:56 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:59661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xvk0m-0006WK-R8 for emacs-orgmode@gnu.org; Tue, 02 Dec 2014 04:44:48 -0500 In-Reply-To: <547C5AF9.3060302@wilkesley.net> (Ian Barton's message of "Mon, 01 Dec 2014 12:11:37 +0000") 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: Ian Barton Cc: ian@manor-farm.org, emacs-orgmode@gnu.org Hello, Ian Barton writes: > However, the using the minimal.el: > > #+begin_src emacs-lisp > ;; activate debugging > (setq debug-on-error t) > (setq debug-on-quit t) > > (add-to-list 'load-path "~/.emacs.d/src/lisp") > (require 'org) > > ;; The following lines are always needed. Choose your own keys. > (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) > (global-set-key "\C-cl" 'org-store-link) > (global-set-key "\C-ca" 'org-agenda) > (global-set-key "\C-cb" 'org-iswitchb) > > (setq org-html-metadata-timestamp-format "%a %d %B %Y ") > (setq org-time-stamp-custom-formats "%a %d %B %Y ") > > #+end_src > > and the following test.org: > > #+begin_src > > The date: [2014-12-01 Mon] > > #+end_src > > gives the following result with C-c C-x C-t > > The date: [2014-12-01 Mon] > > Since nobody else has reported this, I imagine it's a case of user > stupidity, rather than a bug. > > Can anyone point out my error? You need to set `org-display-custom-times' to a non-nil value, too. If you need this feature only during export, you could use a BIND keyword: #+BIND: org-display-custom-times t assuming `org-export-allow-bind-keywords' is also non-nil. Regards, -- Nicolas Goaziou