From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Tatarik Newsgroups: gmane.emacs.help Subject: Re: gnus-icalendar errors in emacs 24.5 Date: Tue, 23 Feb 2016 11:13:38 +0100 Message-ID: <871t83bup9.fsf@xing.com> References: <87y4acurrt.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1456239137 19407 80.91.229.3 (23 Feb 2016 14:52:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 14:52:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Kostas Zorbadelos To: Lars Magne Ingebrigtsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 15:52:15 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 1aYEJy-0006v3-Mu for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 15:52:14 +0100 Original-Received: from localhost ([::1]:57639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYEJy-0001Rx-5R for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 09:52:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY9yW-0004Si-22 for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:13:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY9yT-0007X7-B2 for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:13:47 -0500 Original-Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:37306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY9yT-0007Wo-4c for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:13:45 -0500 Original-Received: by mail-wm0-x22e.google.com with SMTP id g62so202533176wme.0 for ; Tue, 23 Feb 2016 02:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=KugROQDmV+hgdOf3UWjZ5nLBrcPvy+4qZNmtNh1IgP0=; b=C2ZVBIESCa2Nfsj915su8zmn0mbDUm/ZPKP7Zfdli0WZsJUNL4irEiQG4oX11ssjYu yRdEBYd6R8d1dw/mV0v0+zKEioGxDn8LuZbw8v2h1W9z5krdEaepjqrtLVMID71uBD3g UwfIidJja2frahxdfE/X8Ti/6+47rsgOPZStLTnivSBQFHHODFvICP0H+N3Im4ZjS0Wh Ig1oDmJfkVLYU/85Bxpm+tJgd4R0WQFivTuMldJFvWmEHVXawgdHAL6I924vkpMHapl9 whBF2wma1w2QgTMIdy2dP7ANB27TSLXWtc4xZFLocfukHTD0Gl2p/g4LJypSc1iPSKXR pJhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=KugROQDmV+hgdOf3UWjZ5nLBrcPvy+4qZNmtNh1IgP0=; b=k6zoI4bGelnlnceFgIjs+P5edqA5mlDeIxRw8et2U0y+mI8DlZklElk1+AyYE4FJZ9 nSDD4O4W5Ys3KKhYUe1TNH68ZA8D+xCqR5Q5wfxXfV9LbqwsC15SGlHj2EqMZAkSCChh WvHJYABJriYkdlluU0GWtp9AwQEV5LY3ijP4rk5AJIkw3hgI7k7/+1FbGPcmbHGu8iyr LAApVysVGLbzJ6wdWGnkaIRpY7RZFD4gPYoJSdQZYsJSG8Pzbwghau6kVfr3w8t52Vi+ 1VOvboHv18xLdxjKMCPgzNFFmI8n41zRuR+z8K5dH7qhSN4hQXAfS7RpIUgQloQ+1cIu qMOA== X-Gm-Message-State: AG10YOQWSdDa6casRWv6IoNLntC782Imb206spFM+PI3KYEZwLwjPvmVQBhj0IfQJeALcQ== X-Received: by 10.28.147.72 with SMTP id v69mr16544585wmd.79.1456222424207; Tue, 23 Feb 2016 02:13:44 -0800 (PST) Original-Received: from nb-jtatarik2 (ip5f5be747.dynamic.kabel-deutschland.de. [95.91.231.71]) by smtp.gmail.com with ESMTPSA id p125sm25418535wmd.16.2016.02.23.02.13.43 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 23 Feb 2016 02:13:43 -0800 (PST) In-Reply-To: <87y4acurrt.fsf@gnus.org> (Lars Magne Ingebrigtsen's message of "Tue, 23 Feb 2016 12:41:58 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22e X-Mailman-Approved-At: Tue, 23 Feb 2016 09:51:54 -0500 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:109273 Archived-At: --=-=-= Content-Type: text/plain On Tue, Feb 23 2016, Lars Magne Ingebrigtsen wrote: [...] > This is definitely a bug, and it comes from here: > (cl-defmethod gnus-icalendar-event:org-timestamp ((event gnus-icalendar-event)) > "Build `org-mode' timestamp from EVENT start/end dates and recurrence info." > (let* ((start (gnus-icalendar-event:start-time event)) > (end (gnus-icalendar-event:end-time event)) > (start-date (format-time-string "%Y-%m-%d %a" start)) > %a is the locale's day name, and that's not something `date-to-time' can > parse. But I'm not familiar with gnus-icalendar, so I'm not sure what > the right fix is here. > Jan, is the week day supposed to be in these date strings at all? How about this? It's a patch against the emacs-25 branch, I was not able to connect to the gnus git. --=-=-= Content-Type: text/x-diff Content-Disposition: inline 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))) 86400)) (org-repeat (gnus-icalendar-event:org-repeat event)) (repeat (if org-repeat (concat " " org-repeat) "")) --=-=-=--