From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kostas Zorbadelos Newsgroups: gmane.emacs.help Subject: Re: gnus-icalendar errors in emacs 24.5 [FIXED] Date: Tue, 23 Feb 2016 12:35:52 +0200 Organization: No affiliation Message-ID: <87h9gz90jb.fsf_-_@otenet.gr> References: <87y4acurrt.fsf@gnus.org> <871t83bup9.fsf@xing.com> <87a8mru3yc.fsf@gnus.org> Reply-To: kzorba@otenet.gr NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456223849 26438 80.91.229.3 (23 Feb 2016 10:37:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 10:37:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Jan Tatarik To: Lars Ingebrigtsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 11:37:21 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYALJ-0000dq-PM for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 11:37:21 +0100 Original-Received: from localhost ([::1]:55820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYALJ-00052c-8i for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 05:37:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYAJz-00046M-Ff for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:36:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYAJv-0005XU-QN for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:35:59 -0500 Original-Received: from calypso.otenet.gr ([83.235.67.36]:48927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYAJv-0005Wp-K0 for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:35:55 -0500 Original-Received: from otenet.gr (athe-ppp-008.otenet.gr [195.167.126.249]) by calypso.otenet.gr (ESMTP) with ESMTPSA id B0A18138040; Tue, 23 Feb 2016 12:35:52 +0200 (EET) In-Reply-To: <87a8mru3yc.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 23 Feb 2016 21:16:27 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 83.235.67.36 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109268 Archived-At: Lars Ingebrigtsen writes: > Jan Tatarik writes: > >> How about this? It's a patch against the emacs-25 branch, I was not able >> to connect to the gnus git. > > The Gnus git repository is now read-only (and only with anonymous > access). > >> diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el >> index 4faef06..82a649f 100644 >> --- a/lisp/gnus/gnus-icalendar.el >> +++ b/lisp/gnus/gnus-icalendar.el >> @@ -401,8 +401,8 @@ gnus-icalendar-event:org-timestamp >> (end-time (format-time-string "%H:%M" end)) >> (end-at-midnight (string= end-time "00:00")) >> (start-end-date-diff (/ (float-time (time-subtract >> - (date-to-time end-date) >> - (date-to-time start-date))) >> + (org-time-string-to-time end-date) >> + (org-time-string-to-time start-date))) > > Yes, this seems to fix the problem. I'll apply to emacs-25 and push. This seems to work as well in 24.5. My proposal broke the dates in the agenda buffer. Now I have a different problem, showing Greek (or other international text I guess) in calendar invitations. I will start a new thread for this. Thanks, Kostas -- Kostas Zorbadelos http://gr.linkedin.com/in/kzorba