[Vpim-talk] Leap day bug
Gregory Seidman
gsslist+vpim at anthropohedron.net
Mon Mar 3 13:41:33 EST 2008
On Mon, Mar 03, 2008 at 10:32:46AM -0800, Sam Roberts wrote:
> On Mon, Mar 3, 2008 at 7:06 AM, Gregory Seidman
> <gsslist+vpim at anthropohedron.net> wrote:
> > I think you should be able to do it with a quick check on mday. If
> > calculated_time.mday != original_time.mday then skip it and move on.
> > You'll need to keep a separate iteration variable from the time
> > itself, so instead of adding a month or a year to a Time you are
> > adding i*(month or year) to the dtstart.
>
> There are other areas this shows up, it might not be so simple, or
> perhaps it will.
Do you know offhand where it comes up other than occurences iteration?
On a separate note, occurences should be occurrences (i.e. it's
misspelled). Changing it would be bad for backward compatibility, but maybe
an alias?
> > BTW, this is coming up in the context of my (new this weekend, but
> > already up and working) CalTerm project (find it on rubyforge).
>
> Looks fun. I'd like to have CalDAV support in vPim, so if you do some
> work on that consider contributing it to the project. Even if its
> simple support, its better than nothing. Also, gcalendar integration
> might be nice to have outside of the context of CalTerm, so feel free
> to contribute that, too!
I don't know when I'll get to it (I had a miraculously free weekend which
is how I hammered out what I have so far), but I expect it will make more
sense to work that stuff into vpim than outside of it anyway. I'll
definitely contribute my work.
When I start implementing writing it will be first to the filesystem, then
via WebDAV, and then I'll start looking into CalDAV and (maybe) GData. All
my calendars are currently hosted on one WebDAV server or another, so I
don't have much of an itch to scratch for either GData or CalDAV right now.
> Thanks,
> Sam
--Greg
More information about the Vpim-talk
mailing list