From ivana@giga.giga.nl  Tue Mar 22 21:20:34 2011
Return-Path: <ivana@giga.giga.nl>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8BBAF106568A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2011 21:20:34 +0000 (UTC)
	(envelope-from ivana@giga.giga.nl)
Received: from giga.giga.nl (giga.giga.nl [80.101.79.172])
	by mx1.freebsd.org (Postfix) with ESMTP id 255EC8FC0A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2011 21:20:33 +0000 (UTC)
Received: by giga.giga.nl (Postfix, from userid 101)
	id 6BD5AAC875; Tue, 22 Mar 2011 22:01:35 +0100 (CET)
Message-Id: <20110322210135.6BD5AAC875@giga.giga.nl>
Date: Tue, 22 Mar 2011 22:01:35 +0100 (CET)
From: Ivana Belgers <ivana@giga.giga.nl>
Reply-To: Ivana Belgers <ivana@giga.giga.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: calendar recurring date not working
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         155873
>Category:       bin
>Synopsis:       calendar(1) recurring date not working
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    edwin
>State:          patched
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 22 21:30:01 UTC 2011
>Closed-Date:    
>Last-Modified:  Tue Dec 13 00:50:09 UTC 2011
>Originator:     Ivana Belgers-van Overmeeren
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
Private user
>Environment:
System: FreeBSD giga.giga.nl 8.2-STABLE FreeBSD 8.2-STABLE #1: Fri Feb 25 20:50:46 CET 2011 walter@giga.giga.nl:/usr/obj/usr/src/sys/GIGA amd64


>Description:
Until recently the following line in the .calendar file
delivered the expected result:
sat+3	Every third saturday of each month

This worked in 8.1-STABLE installed on 2 august 2010.
Now, since we upgraded to 8.2-STABLE on march 25, this does not work
anymore, but generates the following message:
% calendar
Unprocessed:
-------
date: |Sat+3|
flags: 10a - dayofweek modifierindex variable
modifierindex: |+3|
dayofweek: |Sat| (6)
Ignored: Sat+3  Every third saturday of each month

I modified the line to:
sat+3 *	Every third saturday of each month

Which does not give me the above message, but also doesn't
notify me on the third saturday of the week of what I wanted to be
notified of.

>How-To-Repeat:
See description above, tried some different variaties of
"sat+3", satthird, */satthird, etc.

We upgraded calendar to the latest version today (March 22), but this
didn't solve the issue.

>Fix:
None


Kind regards,
Ivana Belgers

>Release-Note:
>Audit-Trail:

From: Jaakko Heinonen <jh@FreeBSD.org>
To: edwin@FreeBSD.org
Cc: Ivana Belgers <ivana@giga.giga.nl>, bug-followup@FreeBSD.org
Subject: Re: bin/155873: calendar recurring date not working
Date: Mon, 6 Jun 2011 20:22:10 +0300

 Hi,
 
 On 2011-03-22, Ivana Belgers wrote:
 > Until recently the following line in the .calendar file
 > delivered the expected result:
 > sat+3	Every third saturday of each month
 > 
 > This worked in 8.1-STABLE installed on 2 august 2010.
 > Now, since we upgraded to 8.2-STABLE on march 25, this does not work
 > anymore, but generates the following message:
 > % calendar
 > Unprocessed:
 > -------
 > date: |Sat+3|
 > flags: 10a - dayofweek modifierindex variable
 > modifierindex: |+3|
 > dayofweek: |Sat| (6)
 > Ignored: Sat+3  Every third saturday of each month
 
 Seems that the behavior changed in r205821:
 
 ------------------------------------------------------------------------
 r205821 | edwin | 2010-03-29 09:49:20 +0300 (Mon, 29 Mar 2010) | 12 lines
 
 Long awaited update to the calendar system:
 
 - Repeating events which span multiple years (because of -A, -B or
   just the three days before the end of the year).
 
 - Support for lunar events (full moon, new moon) and solar events
   (equinox and solstice, chinese new year). Because of this, the
   options -U (UTC offset) and -l (longitude) are available to
   compensate if reality doesn't match the calculated values.
 
 MFC after:      1 month
 
 ------------------------------------------------------------------------
 
 edwin: Could you comment on this?
 
 -- 
 Jaakko

From: Jaakko Heinonen <jh@FreeBSD.org>
To: edwin@FreeBSD.org
Cc: Ivana Belgers <ivana@giga.giga.nl>, bug-followup@FreeBSD.org
Subject: Re: bin/155873: calendar recurring date not working
Date: Tue, 7 Jun 2011 19:18:06 +0300

 On 2011-06-06, Jaakko Heinonen wrote:
 > On 2011-03-22, Ivana Belgers wrote:
 > > Until recently the following line in the .calendar file
 > > delivered the expected result:
 > > sat+3	Every third saturday of each month
 > > 
 > > This worked in 8.1-STABLE installed on 2 august 2010.
 > > Now, since we upgraded to 8.2-STABLE on march 25, this does not work
 > > anymore, but generates the following message:
 > > % calendar
 > > Unprocessed:
 > > -------
 > > date: |Sat+3|
 > > flags: 10a - dayofweek modifierindex variable
 > > modifierindex: |+3|
 > > dayofweek: |Sat| (6)
 > > Ignored: Sat+3  Every third saturday of each month
 > 
 > Seems that the behavior changed in r205821:
 > 
 > ------------------------------------------------------------------------
 > r205821 | edwin | 2010-03-29 09:49:20 +0300 (Mon, 29 Mar 2010) | 12 lines
 > 
 > Long awaited update to the calendar system:
 > 
 > - Repeating events which span multiple years (because of -A, -B or
 >   just the three days before the end of the year).
 > 
 > - Support for lunar events (full moon, new moon) and solar events
 >   (equinox and solstice, chinese new year). Because of this, the
 >   options -U (UTC offset) and -l (longitude) are available to
 >   compensate if reality doesn't match the calculated values.
 > 
 > MFC after:      1 month
 > 
 > ------------------------------------------------------------------------
 
 Looking at the code I can confirm that r205821 broke this. The new
 function indextooffset() doesn't parse correctly modifierindexes such as
 +3 and -3.
 
 -- 
 Jaakko
Responsible-Changed-From-To: freebsd-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jul 10 22:01:07 UTC 2011 
Responsible-Changed-Why:  
Grab, for me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155873 
State-Changed-From-To: open->patched 
State-Changed-By: edwin 
State-Changed-When: Mon Jul 11 10:36:30 UTC 2011 
State-Changed-Why:  
Fix commited in head, MFC in two weeks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155873 

From: Will <disposable@therag.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/155873: calendar(1) recurring date not working
Date: Mon, 12 Dec 2011 18:23:19 -0600

 I'm having the same problem, and I've tested using 8.2 i386/amd64 and 9.0 rc3 and can't get this working even though it shows patched.
>Unformatted:
