From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Beffara Subject: Bug in org-agenda.el (Was: Bad time display in agenda view) Date: Tue, 15 Jan 2013 14:32:41 +0100 Message-ID: <4B7BFC3F046C4630A39578921F322E7C@gmail.com> References: <542879DFB30C482EA07D81381781B89A@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv6dH-0000rd-4X for emacs-orgmode@gnu.org; Tue, 15 Jan 2013 08:32:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tv6dD-0006Mi-1N for emacs-orgmode@gnu.org; Tue, 15 Jan 2013 08:32:51 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:48662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv6dC-0006MF-Qj for emacs-orgmode@gnu.org; Tue, 15 Jan 2013 08:32:46 -0500 Received: by mail-wi0-f171.google.com with SMTP id hn14so2306597wib.16 for ; Tue, 15 Jan 2013 05:32:44 -0800 (PST) In-Reply-To: <542879DFB30C482EA07D81381781B89A@gmail.com> Content-Disposition: inline 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: Org Mode List Ha, I got it ! When displaying the end time of an interval in agenda view, org-agenda transforms the initial time stamp to minutes, adds the default length to that and maps back to a time stamp using org-minutes-to-clocksum-string. The problem being that this functions checks org-time-clocksum-use-effort-durations and if set to t, uses that in the formatting. Meaning that "8:00" is displayed as "1d 0:00" instead, and "17:30" as "2d 1:30" and so on. I am afraid to change the code, so I just customized org-time-clocksum-use-effort-durations to nil and everything works for now. But presumably this should be fixed by letting it be nil while formatting the end timestamp, somewhere near line 6404 of org-agenda.el ? HTH, Cheers, /vincent -- Vincent Beffara On Monday, January 14, 2013 at 11:50 , Vincent Beffara wrote: > Hi, > > Updated org today (release_7.9.3d-823-gd06fa4), and the times displayed in agenda-view for events of default duration look as if the duration was chosen to be 17 hours: I get this, > > Talks: 14:30-1d 7:30sdf : lskdfjlskdjf > Talks: 17:30-18:30 sdfsdfs : sdf > > > (Here the second one has a timestamp like <... 17:30-18:30> and the first one like <... 14:30>.) Everything works out when pushed using org-caldav, so I believe this is just hapening during display. What is happening ? > > BTW, my org-agenda-default-appointment-duration is set to 60. > > Best, > > -- > Vincent Beffara