Summary | Recurring events for 2/29 display on 3/1 on non-leap years |
Queue | Kronolith |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | jens (at) peino (dot) de |
Created | 01/06/2008 (6495 days ago) |
Due | |
Updated | 01/07/2008 (6494 days ago) |
Assigned | |
Resolved | 01/07/2008 (6494 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Assigned to Michael Rubinsky
Summary ⇒ Recurring events for 2/29 display on 3/1 on non-leap years
State ⇒ Resolved
It's returning, for example, 2/29/09 when in fact the next recurrence
should be 2/29/12. The other symptoms were just due to what block of
time the incorrectly returned date fell in when mktime() was called.
*sigh*
cases for me.
Horde_Date_Recurrance:nextRecurrence() seems to return the proper date
(2/29/xx) but the date gets displayed on 3/1 in certain cases. It
seems to have to do with the day of week that 3/1 falls on in non-leap
years.
Some test cases that work for me:
create an event on 2/29/08 set to recur yearly on the same date.
with 'Monday' selected as the first day of week in prefs, this event
will appear on 3/1/2009...if 'Sunday' is selected as the first day of
week, it does not appear.
create an event on 2/29/04, yearly on same date also.
This event will appear on 3/1/05 regardless of the setting of first
day of week.
yearly on the same date and not on the same day of year?
I cannot reproduce this behaviour now that I am looking into it...
State ⇒
If set to recur yearly on same day of year, this behaviour makes
sense, not on same date of year.
So i would say: She is 16 years old on her 4th birthday.
To me it would be wrong to treat a date (1st of mar) like another
(29th of feb)
the date is present.
IMO, this makes even less sense.
the date is present.
IMO, this makes even less sense.
in this specific case i would expect that the event only occurs if the
date is present.
For the other two types of yearly recurrency its something different.
expect the recurrence date to be? 2/28? IMO, 3/1 makes more sense
since it is the same number of days between occurences.
For the specific case of birthdays, I believe the celebrated day
would differ between cultures and personal preference.
expect the recurrence date to be? 2/28? IMO, 3/1 makes more sense
since it is the same number of days between occurences.
For the specific case of birthdays, I believe the celebrated day would
differ between cultures and personal preference.
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ leap year
Queue ⇒ Kronolith
State ⇒ Unconfirmed
a friend of mine has birhtday on 29th of february.
I made an event for that day and did:
Recurrence
Yearly: Recurs every 1 year(s) on the same date.
When i look in 2009, that event is on 1st of march, which is imo wrong.