From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.help Subject: Re: gnus-icalendar errors in emacs 24.5 Date: Tue, 23 Feb 2016 21:16:27 +1100 Message-ID: <87a8mru3yc.fsf@gnus.org> References: <87y4acurrt.fsf@gnus.org> <871t83bup9.fsf@xing.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456222657 6659 80.91.229.3 (23 Feb 2016 10:17:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 10:17:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Kostas Zorbadelos To: Jan Tatarik Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 11:17:27 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 1aYA21-0003vN-2D for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 11:17:25 +0100 Original-Received: from localhost ([::1]:55698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYA20-0005Uk-EX for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 05:17:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYA1h-0005Pr-Vy for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:17:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYA1f-0000ft-58 for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:17:05 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:52384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYA1e-0000cM-Ui for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:17:03 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYA1A-0002Sm-Cs; Tue, 23 Feb 2016 11:16:33 +0100 In-Reply-To: <871t83bup9.fsf@xing.com> (Jan Tatarik's message of "Tue, 23 Feb 2016 11:13:38 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aYA1A-0002Sm-Cs MailScanner-NULL-Check: 1456827393.89679@17PWtW79CUdPcGNgIHUT/A X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 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:109267 Archived-At: 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no