Closed Bug 168320 Opened 22 years ago Closed 22 years ago

Event recurrence: Nth [weekday] of month

Categories

(Calendar :: Sunbird Only, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gekacheka, Assigned: mikeypotter)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826, 2002091215-cal 

New Event/Edit Event dialog, Recurrence tab. monthly recurrence, 

1. does not provide option for "Nth [weekday] of month", where N is

  Math.floor( dayOfMonth / 7 ) + 1

2. It erroneously provides option for "last [weekday] of month" even if day is
not the last such day.  A day is last [weekday] of month if the following week
is the first weekday of month.

   const ONE_WEEK = ...
   var nextWeekDateTime = eventDateTime + ONE_WEEK;
   var isLastOfMonth = (1 == weekOfMonth(dayOfMonth(nextWeekDateTime)));
   

Reproducible: Always

Steps to Reproduce:
1. Click "new event"
2. Click "Recurrence" tab
3. Click "Repeat every" checkbox
4. Select "Month" in unit dropdown
Actual Results:  
The following radio buttons appear:
( ) on 12th of month
( ) Last thursday of month
1. Does not include "on 2nd thursday of month"
2. The 12th is not the last thursday, so that option should not appear?

Expected Results:  
The following radio buttons should appear:
( ) on 12th of month
( ) on 2nd Thursday of month
Confirmed regression.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
This is fixed in CVS.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Default QA Contact for Calendar has changed.  If you wish to remain the QA
contact for this bug, feel free to change it back.
QA Contact: colint → brantgurganus2001
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.