From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: calc-date-format in org-table.el Date: Thu, 04 Sep 2008 17:54:59 -0400 Message-ID: <18981.1220565299@alphaville.usa.hp.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbMo6-0004kn-Mq for emacs-orgmode@gnu.org; Thu, 04 Sep 2008 17:56:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbMo5-0004kA-Ar for emacs-orgmode@gnu.org; Thu, 04 Sep 2008 17:56:02 -0400 Received: from [199.232.76.173] (port=50617 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbMo5-0004k5-0K for emacs-orgmode@gnu.org; Thu, 04 Sep 2008 17:56:01 -0400 Received: from g5t0008.atlanta.hp.com ([15.192.0.45]:30124) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbMo4-0006YR-ND for emacs-orgmode@gnu.org; Thu, 04 Sep 2008 17:56:00 -0400 Received: from smtp2.fc.hp.com (smtp.cnd.hp.com [15.11.136.114]) by g5t0008.atlanta.hp.com (Postfix) with ESMTP id 7DFD7245BF for ; Thu, 4 Sep 2008 21:54:27 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org The default calc-date-format in org-table.el uses a 12-hour clock, as Stephan Schmitt discovered - see http://article.gmane.org/gmane.emacs.orgmode/7753 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.