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 Date: Tue, 23 Feb 2016 11:13:55 +0200 Organization: No affiliation Message-ID: <87bn77dc18.fsf@otenet.gr> References: <87y4acurrt.fsf@gnus.org> Reply-To: kzorba@otenet.gr NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456218872 9154 80.91.229.3 (23 Feb 2016 09:14:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 09:14:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Jan Tatarik To: Lars Magne Ingebrigtsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 10:14:25 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 1aY932-0008A2-Q0 for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 10:14:24 +0100 Original-Received: from localhost ([::1]:55148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY92z-0003fW-2I for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 04:14:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY92g-0003f6-MV for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 04:14:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY92d-0006x7-BA for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 04:14:02 -0500 Original-Received: from calypso.otenet.gr ([83.235.67.36]:46845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY92d-0006wt-1F for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 04:13:59 -0500 Original-Received: from otenet.gr (athe-ppp-008.otenet.gr [195.167.126.249]) by calypso.otenet.gr (ESMTP) with ESMTPSA id 1427F138040; Tue, 23 Feb 2016 11:13:55 +0200 (EET) 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/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:109266 Archived-At: Lars, thank you so much. The problem is indeed my Greek locale that causes failure in date-to-time(). I made the following patch --- gnus-icalendar.el.orig 2016-02-23 09:04:49.755027543 +0200 +++ gnus-icalendar.el 2016-02-23 10:57:03.759362183 +0200 @@ -389,10 +389,10 @@ "Build `org-mode' timestamp from EVENT start/end dates and recurrence in= fo." (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)) + (start-date (format-time-string "%Y-%m-%dT%T%z" start)) (start-time (format-time-string "%H:%M" start)) (start-at-midnight (string=3D start-time "00:00")) - (end-date (format-time-string "%Y-%m-%d %a" end)) + (end-date (format-time-string "%Y-%m-%dT%T%z" end)) (end-time (format-time-string "%H:%M" end)) (end-at-midnight (string=3D end-time "00:00")) (start-end-date-diff (/ (float-time (time-subtract that seems to work. Jan, as the author has the final saying in this, hopefully it doesn't break anything else, or there is just a better solution. Hopefully it will be fixed in later versions of Emacs.=20 Again, thanks, it is a pleasure to finally get rid of Thunderbird and have a plain text calendaring that works. Regards, Kostas Lars Magne Ingebrigtsen writes: > Kostas Zorbadelos writes: > >> Org file exists and has a 'Calendar' headline. >> On export of a calendar mail (attached the calendar MIME part) I get the >> attached backtrace. I get the same backtrace even when I send a gmail >> calendar invitation. Any suggestions? > > [...] > >> Debugger entered--Lisp error: (error "Invalid date: 2016-02-25 =CE=A0=CE= =B5=CE=BC") >> signal(error ("Invalid date: 2016-02-25 =CE=A0=CE=B5=CE=BC")) >> error("Invalid date: %s" "2016-02-25 =CE=A0=CE=B5=CE=BC") >> date-to-time("2016-02-25 =CE=A0=CE=B5=CE=BC") > > This is definitely a bug, and it comes from here: > > (cl-defmethod gnus-icalendar-event:org-timestamp ((event gnus-icalendar-e= vent)) > "Build `org-mode' timestamp from EVENT start/end dates and recurrence i= nfo." > (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? --=20 Kostas Zorbadelos http://gr.linkedin.com/in/kzorba=09