<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Why bake a calendar when one already exists</title>
	<atom:link href="http://www.365webapplications.com/2009/01/09/cakephp-calendar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.365webapplications.com/2009/01/09/cakephp-calendar/</link>
	<description>Web Design and Business tips, reviews, and tools</description>
	<lastBuildDate>Thu, 09 Sep 2010 16:19:34 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason</title>
		<link>http://www.365webapplications.com/2009/01/09/cakephp-calendar/comment-page-1/#comment-306</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 15 Feb 2010 18:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.365webapplications.com/?p=177#comment-306</guid>
		<description>Thanks to Kory for pointing out an issue with this code and iCal.  I updated the code with the fix.

Changed:
        if(!$end)
        {
            $end = $start + 24*60*60;
            $vevent-&gt;setProperty(&#039;dtstart&#039;, date(&#039;Ymd&#039;, $start), array(&#039;VALUE&#039;=&gt;&#039;DATE&#039;));
            $vevent-&gt;setProperty(&#039;dtend&#039;, date(&#039;Ymd&#039;, $end), array(&#039;VALUE&#039;=&gt;&#039;DATE&#039;));
        }

to

        if(!$end)
        {
            $vevent-&gt;setProperty(&#039;dtstart&#039;, date(&#039;Ymd&#039;, $start), array(&#039;VALUE&#039;=&gt;&#039;DATE&#039;));
        }</description>
		<content:encoded><![CDATA[<p>Thanks to Kory for pointing out an issue with this code and iCal.  I updated the code with the fix.</p>
<p>Changed:<br />
        if(!$end)<br />
        {<br />
            $end = $start + 24*60*60;<br />
            $vevent->setProperty(&#8217;dtstart&#8217;, date(&#8217;Ymd&#8217;, $start), array(&#8217;VALUE&#8217;=>&#8217;DATE&#8217;));<br />
            $vevent->setProperty(&#8217;dtend&#8217;, date(&#8217;Ymd&#8217;, $end), array(&#8217;VALUE&#8217;=>&#8217;DATE&#8217;));<br />
        }</p>
<p>to</p>
<p>        if(!$end)<br />
        {<br />
            $vevent->setProperty(&#8217;dtstart&#8217;, date(&#8217;Ymd&#8217;, $start), array(&#8217;VALUE&#8217;=>&#8217;DATE&#8217;));<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to create a popular blog post? &#124; 365 Web Applications for Designers</title>
		<link>http://www.365webapplications.com/2009/01/09/cakephp-calendar/comment-page-1/#comment-89</link>
		<dc:creator>How to create a popular blog post? &#124; 365 Web Applications for Designers</dc:creator>
		<pubDate>Tue, 03 Mar 2009 14:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.365webapplications.com/?p=177#comment-89</guid>
		<description>[...] Why bake a calendar when one already exists? [...]</description>
		<content:encoded><![CDATA[<p>[...] Why bake a calendar when one already exists? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.365webapplications.com/2009/01/09/cakephp-calendar/comment-page-1/#comment-23</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 20 Jan 2009 08:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.365webapplications.com/?p=177#comment-23</guid>
		<description>Thanks Ben.  I updated the code to include the subset of parameters.</description>
		<content:encoded><![CDATA[<p>Thanks Ben.  I updated the code to include the subset of parameters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.365webapplications.com/2009/01/09/cakephp-calendar/comment-page-1/#comment-20</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sun, 18 Jan 2009 12:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.365webapplications.com/?p=177#comment-20</guid>
		<description>I got an &quot;Array to string conversion [APP/vendors/iCalcreator.class.php, line 5290]&quot; error with the above due to the start &amp; end timestamps&#039; day-of-month value not being translated. i.e. require $start[&#039;day&#039;] = $start[&#039;mday&#039;];

Also, it seems that iCalcreator is very sensitive to the number of arguments, I found the following seems to work:
			$end = strtotime($end);

			$start = getdate($start);
            // iCalcreator is sensitive to extra arguments, only pass what is required
            $start = array (&quot;year&quot; =&gt; $start[&#039;year&#039;], &quot;month&quot; =&gt; $start[&#039;mon&#039;], 
                &quot;day&quot; =&gt; $start[&#039;mday&#039;], &quot;hour&quot; =&gt; $start[&#039;hours&#039;], &quot;min&quot; =&gt; $start[&#039;minutes&#039;], 
                &quot;sec&quot; =&gt; $start[&#039;seconds&#039;]);

			$end = getdate($end);
            $end = array (&quot;year&quot; =&gt; $end[&#039;year&#039;], &quot;month&quot; =&gt; $end[&#039;mon&#039;], 
                &quot;day&quot; =&gt; $end[&#039;mday&#039;], &quot;hour&quot; =&gt; $end[&#039;hours&#039;], &quot;min&quot; =&gt; $end[&#039;minutes&#039;], 
                &quot;sec&quot; =&gt; $end[&#039;seconds&#039;]);

			$vevent-&gt;setProperty(&#039;dtstart&#039;, $start);
			$vevent-&gt;setProperty(&#039;dtend&#039;, $end);</description>
		<content:encoded><![CDATA[<p>I got an &#8220;Array to string conversion [APP/vendors/iCalcreator.class.php, line 5290]&#8221; error with the above due to the start &amp; end timestamps&#8217; day-of-month value not being translated. i.e. require $start['day'] = $start['mday'];</p>
<p>Also, it seems that iCalcreator is very sensitive to the number of arguments, I found the following seems to work:<br />
			$end = strtotime($end);</p>
<p>			$start = getdate($start);<br />
            // iCalcreator is sensitive to extra arguments, only pass what is required<br />
            $start = array (&#8221;year&#8221; =&gt; $start['year'], &#8220;month&#8221; =&gt; $start['mon'],<br />
                &#8220;day&#8221; =&gt; $start['mday'], &#8220;hour&#8221; =&gt; $start['hours'], &#8220;min&#8221; =&gt; $start['minutes'],<br />
                &#8220;sec&#8221; =&gt; $start['seconds']);</p>
<p>			$end = getdate($end);<br />
            $end = array (&#8221;year&#8221; =&gt; $end['year'], &#8220;month&#8221; =&gt; $end['mon'],<br />
                &#8220;day&#8221; =&gt; $end['mday'], &#8220;hour&#8221; =&gt; $end['hours'], &#8220;min&#8221; =&gt; $end['minutes'],<br />
                &#8220;sec&#8221; =&gt; $end['seconds']);</p>
<p>			$vevent-&gt;setProperty(&#8217;dtstart&#8217;, $start);<br />
			$vevent-&gt;setProperty(&#8217;dtend&#8217;, $end);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Why bake a calendar when one already exists &#124; PHP-Blog.com</title>
		<link>http://www.365webapplications.com/2009/01/09/cakephp-calendar/comment-page-1/#comment-7</link>
		<dc:creator>Why bake a calendar when one already exists &#124; PHP-Blog.com</dc:creator>
		<pubDate>Sat, 10 Jan 2009 00:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.365webapplications.com/?p=177#comment-7</guid>
		<description>[...] here: Why bake a calendar when one already exists     Related ArticlesBookmarksTags      Why the UK&#039;s tech hub should not be in London The PHP group [...]</description>
		<content:encoded><![CDATA[<p>[...] here: Why bake a calendar when one already exists     Related ArticlesBookmarksTags      Why the UK&#8217;s tech hub should not be in London The PHP group [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

