Skip Menu |

This queue is for tickets about the Data-ICal CPAN distribution.

Report information
The Basics
Id: 80139
Status: rejected
Priority: 0/
Queue: Data-ICal

People
Owner: Nobody in particular
Requestors: ljb [...] dslextreme.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Data::ICal::Entry as_string parameter delimiter
Date: Sat, 06 Oct 2012 16:16:28 -0700
To: jesse [...] bestpractical.com
From: lyndon <ljb [...] dslextreme.com>
Jesse, Sorry to bother you. I was playing with your ICal mod and noticed that the Date-Time format I get (see attached testcase) appears to be using a ":" rather than a ";" delimiting the TZID parameter. BEGIN:VEVENT CATEGORIES:Party CLASS:PUBLIC CREATED:TZID=America/Los_Angeles:20121006T161347 DESCRIPTION:Event in my Timezone showing possible as_string bug DTEND:TZID=America/Los_Angeles:20121006T174347 DTSTART:TZID=America/Los_Angeles:20121006T161347 LOCATION:My House SEQUENCE:0 STATUS:TENTATIVE SUMMARY:My Event UID:zz9zza@baldrix.net END:VEVENT The testcase attached should show what I was doing and includes in comments at the end, the RFC 2445 I was looking at. Thanks for reading, hope I didn't make a mistake in using your module. Regards Jon

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #80139] Data::ICal::Entry as_string parameter delimiter
Date: Mon, 15 Oct 2012 10:18:51 -0700
To: bug-Data-ICal [...] rt.cpan.org
From: Thomas Sibley <trs [...] bestpractical.com>
On 10/11/2012 11:57 AM, lyndon via RT wrote: Show quoted text
> The testcase attached should show what I was doing and includes in > comments at the end, the RFC 2445 I was looking at. > > Thanks for reading, hope I didn't make a mistake in using your module.
Data::ICal is just doing what you asked, in this case. You specify that the _value_ of the dtstart/dtend event properties should be the output of DateTime::Format::ICal->format_datetime(...). The format_datetime call is what's producing the TZID tag, and Data::ICal is just presenting the value you give it as the actual value (which is supposed to follow the colon, not a semi-colon). You should instead add the property using something similar to the synopsis in Data::ICal::TimeZone's documentation: https://metacpan.org/module/Data::ICal::TimeZone#SYNOPSIS