qtmoko calendar

Adrien Dorsaz adrien at adorsaz.ch
Wed Feb 20 02:39:26 CET 2013


Hi Robin,

Le lundi 11 février 2013 à 11:44 +0000, robin a écrit :
> Hi Adrien,
> 
> thanks for this very handy tool. It works almost perfectly with my ics calender
> I export from orgmode. there is just one minor thing: it fails if I have a date
> on YYYY-07-31 which as far as I checked my calendar does actually exist:
> 
> for the error I found the following bug [1] on the internet with the solution to
> set the database datestyle like:
> 
> ALTER DATABASE bugzilla SET datestyle = 'iso, dmy';
> 
> is this also possible with the qtopia database?

I don't know exactly what does "alter database" sql request and I'd
prefer to not touch this database because it contains other informations
(like call history).

> 
> 
> this is the output I get 
> 
> Prepare the appointment recid=248
> description=Bruno Brezinas %d. Geburtstag
> startDate=1945-07-31T00:00:00
> startDateTimeZone=
> The 'day' parameter ("0") to DateTime::set did not pass the 'an integer which 
> is a possible valid day of month' callback
>  at /usr/lib/perl5/DateTime.pm line 1875
>         DateTime::set(undef, 'day', 0) called at /usr/lib/perl5/DateTime.pm 
> line 1886
>         DateTime::set_day('DateTime=HASH(0x8f2618)', 0) called at 
> ./ics2qtcal.pl line 107
>         main::extractDateFromIcalLine('ARRAY(0xa00790)', 1) called at 
> ./ics2qtcal.pl line 260
> 

Ok, I've tried to work on extractDateFromIcalLine function to remove
some assumptions made by the original author.

I'm not a perl expert, as you can see in my commits (I've made a lot of
commits because I use git to transfer my modifications on my phone), but
it worked better with my calendars.

Can you download latest version and try again with this calendar ?
https://github.com/Trim/qtmoko-ics2qtcal/raw/master/downloads/ics2qtcal-0.7.2.zip


Thanks,
Adrien

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openmoko.org/pipermail/community/attachments/20130220/d3964bc8/attachment.pgp>


More information about the community mailing list