[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] calc-date-format in org-table.el

From: Carsten Dominik
Subject: Re: [Orgmode] calc-date-format in org-table.el
Date: Fri, 5 Sep 2008 07:35:37 +0200

Wow, what a stupid, terrible bug.

I applied you patch, thanks.

- Carsten

On Sep 4, 2008, at 11:54 PM, Nick Dokos wrote:

The default calc-date-format in org-table.el uses a 12-hour clock, as
Stephan Schmitt discovered - see


I think it would be preferable to use either a 24-hour clock (or an
am/pm indicator - imo, a 24-hour clock is better). Here is a patch
to make it into a 24-hour clock:

diff --git a/lisp/org-table.el b/lisp/org-table.el
index 4ba83e9..5d72aab 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -191,7 +191,7 @@ t:      accept as input and present for editing"
    calc-angle-mode    deg
    calc-prefer-frac   nil
    calc-symbolic-mode nil
-    calc-date-format (YYYY "-" MM "-" DD " " Www (" " HH ":" mm))
+    calc-date-format (YYYY "-" MM "-" DD " " Www (" " hh ":" mm))
    calc-display-working-message t
  "List with Calc mode settings for use in calc-eval for table formulas.

Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]