Calender desklet calculates incorrect date for Easter

Bug #735069 reported by Kevin L. Mitchell
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gDesklets
Fix Committed
Undecided
Joe Sapp

Bug Description

Calender 0.75 computes an incorrect date for Easter 2011; it claims Easter is March 27th, when it's actually April 24th...

Revision history for this message
Bjoern Koch (h.humpel) wrote :

Thanks for the report!

So, looks like the calculation in "calendar_mod.script" (see lines 65-100) are not correct ?!
Looks hard to say for me, as the whole thing about "calculating the date of Easter Sunday" seems to be... ambiguous ?!

http://en.wikipedia.org/wiki/Computus

Anyone any idea about ít ?

Revision history for this message
Kevin L. Mitchell (klmitch) wrote : Re: [Bug 735069] Re: Calender desklet calculates incorrect date for Easter

On Tue, 2011-03-15 at 13:40 +0000, Bjoern Koch wrote:
> Thanks for the report!

Welcome.

> So, looks like the calculation in "calendar_mod.script" (see lines
> 65-100) are not correct ?!
> Looks hard to say for me, as the whole thing about "calculating the
> date of Easter Sunday" seems to be... ambiguous ?!
>
> http://en.wikipedia.org/wiki/Computus
>
> Anyone any idea about ít ?

I have a couple of URLs in my bookmarks related to calculating Easter
that might be useful for you:

        http://abledesign.com/programs/holiday_code.php
        http://www.christianwebsite.com/cgi-bin/search/jump.cgi?ID=91886
        http://www.smart.net/~mmontes/ushols.html
        http://guest.engelschall.com/~sb/download/Date-Calc/

I make no representations about the accuracy or applicability of the
above, but at least one includes a description of an algorithm for
determining Easter, and another is obviously for Perl code which
performs the computation...hopefully in a readable fashion, but you know
what they say about Perl being a "write-once" language :)
--
Kevin L. Mitchell <email address hidden>

Revision history for this message
Joe Sapp (sappj) wrote :

If you could put it into an icalendar (rfc2445) format, the iCalendarEvent Control could handle it. We'd then need to modify the Calendar desklet to use this Control, bundle it with gDesklets, and add the python-icalendar dep to gDesklets. I think this is a reliable way to handle this (almost annual) problem since this is the internet calendaring standard and there exists at least one calendar file already (https://www.google.com/calendar/ical/en.christian%23holiday%40group.v.calendar.google.com/public/basic.ics).

Joe Sapp (sappj)
Changed in gdesklets:
assignee: nobody → Joe Sapp (sappj)
milestone: none → release-of-0.36.4
status: New → Fix Committed
Revision history for this message
Joe Sapp (sappj) wrote :

This should be fixed in 0.36.4. It will require the use of the icalendar python module, but your distro should handle the new dependency. If you want to test it out right now, please check out the desklets-basic repository.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.