OK, thanks for the updated script! It runs to completion, and indeed prints debugging info. The curious part is that the typical event looks like this:
So, oddly, the gsubbing doesn't seem to be doing anything: the gsubbed version is the same as the original.
Ah, but wait! I made a stab in the dark and replaced the two gsub lines with
line = line.gsub("Z","")
line = line.gsub("#{replace}:","#{replace};TZID=#{timezone}:")
i.e., inserted the "line = " part in front. This seems to work properly, with one funny exception: any line that already had a "TZID" (e.g., appointments I've made since upgrading and working this issue out) got replaced with a "TID" because of the gsubbing "Z" to a "". So, is there a way of insuring that the match to Z occurs only at the end of the line?
I'm happy to send you the calendar file off-line, if you wish. You can email me directly, my last name followed by wustl and then a dot and then edu (parse that, spammers!)
OK, thanks for the updated script! It runs to completion, and indeed prints debugging info. The curious part is that the typical event looks like this:
......BEGIN:VEVENT 20081022T164250 Z ;CN=Tim Holy:MAILTO:<email address hidden> 20060412T212539 Z libkcal- 1053224003. 358 MODIFIED: 20060413T131556 Z SWITH DSTART: DTSTART: 20060428T154500 Z SWITH DSTART GSUBBED: DTSTART: 20060428T154500 Z SWITH DSTART: DTEND:20060428T 163000Z SWITH DSTART GSUBBED: DTEND:20060428T 163000Z
......DTSTAMP:
......ORGANIZER
......CREATED:
......UID:
......SEQUENCE:1
......LAST-
......SUMMARY:Some event
......PRIORITY:3
......LINESTART
......LINESTART
......LINESTART
......LINESTART
......TRANSP:OPAQUE
......END:VEVENT
So, oddly, the gsubbing doesn't seem to be doing anything: the gsubbed version is the same as the original.
Ah, but wait! I made a stab in the dark and replaced the two gsub lines with "#{replace} :","#{replace} ;TZID=# {timezone} :")
line = line.gsub("Z","")
line = line.gsub(
i.e., inserted the "line = " part in front. This seems to work properly, with one funny exception: any line that already had a "TZID" (e.g., appointments I've made since upgrading and working this issue out) got replaced with a "TID" because of the gsubbing "Z" to a "". So, is there a way of insuring that the match to Z occurs only at the end of the line?
I'm happy to send you the calendar file off-line, if you wish. You can email me directly, my last name followed by wustl and then a dot and then edu (parse that, spammers!)