GNU bug report logs - #68000
30.0.50; icalendar-import-file generates a wrong diary-block end date with both weekly and byday.

Previous Next

Package: emacs;

Reported by: TAKAHASHI Yoshio <yfb02119 <at> nifty.com>

Date: Sun, 24 Dec 2023 01:56:01 UTC

Severity: normal

Found in version 30.0.50

To reply to this bug, email your comments to 68000 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#68000; Package emacs. (Sun, 24 Dec 2023 01:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to TAKAHASHI Yoshio <yfb02119 <at> nifty.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 24 Dec 2023 01:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: TAKAHASHI Yoshio <yfb02119 <at> nifty.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; icalendar-import-file generates a wrong diary-block end
 date with both weekly and byday.
Date: Sun, 24 Dec 2023 10:54:44 +0900
Hi,

icalendar-import-file generates a wrong diary-block end date when an
input ics has both WEEKLY and BYDAY.  It counts 7 days per COUNT even if
BYDAY is specified.

Please see included "in.ics" and "out.diary" that I use to check:
  (icalendar-import-file "in.ics" "out.diary")

diary-block with COUNT=2 starts from 2023-09-28 Thursday should be
  (diary-block 9 28 2023 9 29 2023)
insetad of
  (diary-block 9 28 2023 10 12 2023)
.


in.ics
--8<---------------cut here---------------start------------->8---
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 16.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Tokyo Standard Time
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0900
TZOFFSETTO:+0900
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CLASS:PUBLIC
DTEND;TZID="Tokyo Standard Time":20230928T080000
DTSTAMP:20230927T223304Z
DTSTART;TZID="Tokyo Standard Time":20230928T073000
RRULE:FREQ=WEEKLY;COUNT=2;BYDAY=MO,TU,WE,TH,FR
SEQUENCE:0
SUMMARY;LANGUAGE=ja:あいうえお
TRANSP:OPAQUE
UID:040000008200E00074C5B7101A82E00800000000A0B94EC51984D901000000000000000
	0100000007D56C1DF9E90BA42AE840AB94F4F4D64
END:VEVENT
END:VCALENDAR
--8<---------------cut here---------------end--------------->8---


out.diary
--8<---------------cut here---------------start------------->8---
%%(and (memq (calendar-day-of-week date) '(1 2 3 4 5)) (diary-block 9 28 2023 10 12 2023)) 07:30-08:00 あいうえお
--8<---------------cut here---------------end--------------->8---


In GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version
 3.24.33, cairo version 1.16.0) of 2023-12-23 built on LAPTOP-89LTAUNV
Repository revision: 1be62044732df0c4f1be9679a4ada09850a9e2ab
Repository branch: HEAD
Windowing system distributor 'Microsoft Corporation', version 11.0.12010000
System Description: Ubuntu 22.04.3 LTS

-- 
TAKAHASHI Yoshio <yfb02119 <at> nifty.com>




This bug report was last modified 1 year and 178 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.