Org-mode mailing list
 help / color / mirror / Atom feed
From: Vincent Beffara <vbeffara+ml@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
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> (raw)
In-Reply-To: <542879DFB30C482EA07D81381781B89A@gmail.com>

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

  reply	other threads:[~2013-01-15 13:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14 10:50 Bad time display agenda view Vincent Beffara
2013-01-15 13:32 ` Vincent Beffara [this message]
2013-01-15 19:19   ` Bug in org-agenda.el Achim Gratz
2013-01-22 14:54     ` Bastien
2013-01-22 17:20       ` Achim Gratz
2013-01-22 14:53   ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://orgmode.org

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B7BFC3F046C4630A39578921F322E7C@gmail.com \
    --to=vbeffara+ml@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git