Hi,
I use the following in a special display format:
<div class="news_index_date"><!--[$info.from|pndate_format:"%b"|pnvarprephtmldisplay]--><br /><b><!--[$info.from|pndate_format:"%d"|pnvarprephtmldisplay]--></b></div>
(Online example in my upgrade in progress
here)
sice briefdate is already a converted date, you should not use the date_format on that one again.
In the code briefdate is formed by:
$info['briefdate'] = DateUtil::getDatetime($info['unixtime'], _DATEBRIEF);
Also check out the date format info for
Smarty here. A date conversion on something that is already a converted date could go wrong. You should use the unix timestamp in that case, which can be done by using $info.unixtime.
But it might be best to use the pndate_format
modifier (which uses DateUtil internally) with the $info.from as above, since that is the correct time field to use from News 2.4 onwards. It represents the published date of the article.
--
campertoday.nl, Module development, Dutch Zikula Community