<?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: Smarty Relative Datetime Modifier</title>
	<atom:link href="http://blog.ericlamb.net/2009/03/smarty-relative-datetime-modifier/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ericlamb.net/2009/03/smarty-relative-datetime-modifier/</link>
	<description>Thoughts on programming, people and life</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:01:37 -0800</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Krysis</title>
		<link>http://blog.ericlamb.net/2009/03/smarty-relative-datetime-modifier/comment-page-1/#comment-121241</link>
		<dc:creator>Krysis</dc:creator>
		<pubDate>Fri, 03 Feb 2012 10:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=1216#comment-121241</guid>
		<description>Smarty/plugins/modifier.relative_datetime.php:42
E_NOTICE: Undefined offset: 7

If you cycle from 0 to $total_lengths, you want to get index 7 of lengths. But the last index of $lengths is 6.

This should solve this problem
...
for($j = 0; $difference &gt; $lengths[$j] &amp;&amp; $total_lengths-1 &gt; $j; $j++) {
...</description>
		<content:encoded><![CDATA[<p>Smarty/plugins/modifier.relative_datetime.php:42<br />
E_NOTICE: Undefined offset: 7</p>
<p>If you cycle from 0 to $total_lengths, you want to get index 7 of lengths. But the last index of $lengths is 6.</p>
<p>This should solve this problem<br />
&#8230;<br />
for($j = 0; $difference &gt; $lengths[$j] &amp;&amp; $total_lengths-1 &gt; $j; $j++) {<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Harvey</title>
		<link>http://blog.ericlamb.net/2009/03/smarty-relative-datetime-modifier/comment-page-1/#comment-25306</link>
		<dc:creator>Paul Harvey</dc:creator>
		<pubDate>Mon, 10 Jan 2011 09:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=1216#comment-25306</guid>
		<description>Hi Eric,

Thanks for this function. I tweaked it a little to work as a standalone php function and it works great :)</description>
		<content:encoded><![CDATA[<p>Hi Eric,</p>
<p>Thanks for this function. I tweaked it a little to work as a standalone php function and it works great <img src='http://blog.ericlamb.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

