Hi all, What is the best way to debug the parsing of this chunk out of my Apple iCal file??? For some reason I am getting the start time as if the US/Eastern TZ wasn''t taking place! I am using TZInfo to help deal with comparing UTC to timezone specific dates, but when I just ask my raw iCalendar Event for the start time, it shows up without the Timezone: Before parsing. ical: 2007-03-02T11:00:00Z BEGIN:VEVENT DTSTART;TZID=US/Eastern:20070302T110000 LOCATION:SAIC DTEND;TZID=US/Eastern:20070302T120000 SUMMARY:Re: CI Talk Redux UID:A6202042-1D3C-4212-A1CF-42D3D5715B17 SEQUENCE:7 DTSTAMP:20070222T142246Z DESCRIPTION:let''s tentatively schedule a tech talk for 11-12 Friday 2 Ma r. Does that work?\n\nEric Pugh wrote:\nMatt\,\n\nKevin mentioned you''d like me to give the CI Talk again\, and today I was chatting with Mike G oddard and he expressed a similar desire. I can pretty much do it whene ver works best for you''all.\n\nI have been spending some time with Natha n working through some issues and giving him a hands on tour\, and I dem oed it to Nancy Snyder casually\, but getting the full \"why and how\" i s always good.\n\nEric\n\n---------------------------------------------- ---------\nPrincipal\nOpenSource Connections\nSite: http://www.opensourc econnections.com\nBlog: http://blog.opensourceconnections.com\nCell: 1-4 34-466-1467\n\n\n\n BEGIN:VALARM ACTION:AUDIO X-WR-ALARMUID:22811D8F-0C2F-447F-9ECC-13308C7DABAD ATTACH;VALUE=URI:Basso TRIGGER:-PT15M END:VALARM END:VEVENT Eric ------------------------------------------------------- Principal OpenSource Connections Site: http://www.opensourceconnections.com Blog: http://blog.opensourceconnections.com Cell: 1-434-466-1467
roland oth
2007-Mar-22 03:57 UTC
[iCalendar-devel] Parsing Datetime seems to be failing...
> > Before parsing. ical: 2007-03-02T11:00:00ZPossibly the "Z" not a time Zone Indicator for Z = Zulu = GMT
Humm... Not sure.. I am trying to extract my code and make it more testable (shame on me for not having done it first!) and will let you''all know.. At least according to the iCal RFC, the Z means GMT. I didn''t realize that the Z == Zulu == GMT, wondered why the letter Z was used, now I know! Eric On Mar 21, 2007, at 11:57 PM, roland oth wrote:>> >> Before parsing. ical: 2007-03-02T11:00:00Z > Possibly the "Z" not a time Zone Indicator for Z = Zulu = GMT > > _______________________________________________ > icalendar-devel mailing list > icalendar-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/icalendar-devel------------------------------------------------------- Principal OpenSource Connections Site: http://www.opensourceconnections.com Blog: http://blog.opensourceconnections.com Cell: 1-434-466-1467
Roland Oth
2007-Mar-22 14:06 UTC
[iCalendar-devel] Parsing Datetime seems to be failing...
"zulu" = "Z" comes from the way the letters of the alphabet are used phonetically in aviation: It goes like sort of like this: alpha, bravo, charly, delta ..uniform,x-ray,zulu rgds Roland -- --------------------------------------------------------------- Roland Oth Bergengasse 6/7/15, 1220 Wien, Austria Mobile +43 (0)699 16993274 mailto:r.oth at gmx.net --------------------------------------------------------------- "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
Hi all, I''ve discovered part of the problem!!!! It turns out that Apple iCal outputs the DTSTART and DTEND elements with a ";" character instead of a ":" character. It actually does that for a couple other elements as well. Now, I am not sure if this is the cause of my problem, but it is at least a bug. Changed Elements: DTSTART;TZID=US-Mountain:20050120T170000 DTEND;20050120T184500 I haven''t been able to discern is this an Apple or iCalendar bug though.... I''ve written a test against the 0.98 version that shows the problem. Without public SVN I can''t do a diff, but I have attached the relevant files. Jeff, if there is a better place to submit this bug fix, please let me know. Eric Pugh -------------- next part -------------- A non-text attachment was scrubbed... Name: parser_test.rb Type: text/x-ruby-script Size: 2993 bytes Desc: not available Url : http://rubyforge.org/pipermail/icalendar-devel/attachments/20070322/b7c9ec3e/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: apple_ical_event.ics Type: text/calendar Size: 542 bytes Desc: not available Url : http://rubyforge.org/pipermail/icalendar-devel/attachments/20070322/b7c9ec3e/attachment-0001.bin -------------- next part -------------- On Mar 21, 2007, at 11:57 PM, roland oth wrote:>> >> Before parsing. ical: 2007-03-02T11:00:00Z > Possibly the "Z" not a time Zone Indicator for Z = Zulu = GMT > > _______________________________________________ > icalendar-devel mailing list > icalendar-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/icalendar-devel------------------------------------------------------- Principal OpenSource Connections Site: http://www.opensourceconnections.com Blog: http://blog.opensourceconnections.com Cell: 1-434-466-1467
John Postlethwait
2007-Mar-22 18:00 UTC
[iCalendar-devel] Parsing Datetime seems to be failing...
Hi Eric, That is not actually an iCalendar bug but is the iCalendar formatting. Check out: http://www.ietf.org/rfc/rfc2445.txt and see section 4.1.1 for another example. (Examples using a semi-colon are actually all-over that document, that is just the first one I happened across.) -John Postlethwait On 3/22/07, Eric Pugh <epugh at opensourceconnections.com> wrote:> > Hi all, > > I''ve discovered part of the problem!!!! It turns out that Apple > iCal outputs the DTSTART and DTEND elements with a ";" character > instead of a ":" character. It actually does that for a couple other > elements as well. Now, I am not sure if this is the cause of my > problem, but it is at least a bug. > > Changed Elements: > DTSTART;TZID=US-Mountain:20050120T170000 > DTEND;20050120T184500 > > I haven''t been able to discern is this an Apple or iCalendar bug > though.... I''ve written a test against the 0.98 version that shows > the problem. Without public SVN I can''t do a diff, but I have > attached the relevant files. > > Jeff, if there is a better place to submit this bug fix, please let > me know. > > > > Eric Pugh > > > > On Mar 21, 2007, at 11:57 PM, roland oth wrote: > > >> > >> Before parsing. ical: 2007-03-02T11:00:00Z > > Possibly the "Z" not a time Zone Indicator for Z = Zulu = GMT > > > > _______________________________________________ > > icalendar-devel mailing list > > icalendar-devel at rubyforge.org > > http://rubyforge.org/mailman/listinfo/icalendar-devel > > ------------------------------------------------------- > Principal > OpenSource Connections > Site: http://www.opensourceconnections.com > Blog: http://blog.opensourceconnections.com > Cell: 1-434-466-1467 > > > > > > _______________________________________________ > icalendar-devel mailing list > icalendar-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/icalendar-devel > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/icalendar-devel/attachments/20070322/e9721dc4/attachment.html
Can anyone else verify that the ruby icalendar doesn''t properly handled the seperator being a ";"? I tossed in a line of code to substitute DTSTART; with DTSTART: and all of a sudden things started parsing! Seems to be in parser.rb some regex patterns that specify what passes and what fails. Eric On Mar 22, 2007, at 2:00 PM, John Postlethwait wrote:> Hi Eric, > > That is not actually an iCalendar bug but is the iCalendar > formatting. Check out: http://www.ietf.org/rfc/rfc2445.txt and see > section 4.1.1 for another example. (Examples using a semi-colon are > actually all-over that document, that is just the first one I > happened across.) > > -John Postlethwait > > On 3/22/07, Eric Pugh <epugh at opensourceconnections.com> wrote: > Hi all, > > I''ve discovered part of the problem!!!! It turns out that Apple > iCal outputs the DTSTART and DTEND elements with a ";" character > instead of a ":" character. It actually does that for a couple other > elements as well. Now, I am not sure if this is the cause of my > problem, but it is at least a bug. > > Changed Elements: > DTSTART;TZID=US-Mountain:20050120T170000 > DTEND;20050120T184500 > > I haven''t been able to discern is this an Apple or iCalendar bug > though.... I''ve written a test against the 0.98 version that shows > the problem. Without public SVN I can''t do a diff, but I have > attached the relevant files. > > Jeff, if there is a better place to submit this bug fix, please let > me know. > > > > Eric Pugh > > > > On Mar 21, 2007, at 11:57 PM, roland oth wrote: > > >> > >> Before parsing. ical: 2007-03-02T11:00:00Z > > Possibly the "Z" not a time Zone Indicator for Z = Zulu = GMT > > > > _______________________________________________ > > icalendar-devel mailing list > > icalendar-devel at rubyforge.org > > http://rubyforge.org/mailman/listinfo/icalendar-devel > > ------------------------------------------------------- > Principal > OpenSource Connections > Site: http://www.opensourceconnections.com > Blog: http://blog.opensourceconnections.com > Cell: 1-434-466-1467 > > > > > > _______________________________________________ > icalendar-devel mailing list > icalendar-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/icalendar-devel > > > _______________________________________________ > icalendar-devel mailing list > icalendar-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/icalendar-devel------------------------------------------------------- Principal OpenSource Connections Site: http://www.opensourceconnections.com Blog: http://blog.opensourceconnections.com Cell: 1-434-466-1467 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/icalendar-devel/attachments/20070323/adab1304/attachment.html