35
<{php}>
setlocale(LC_TIME, 'nl_NL');
<{/php}>
<{$smarty.now|date_format:"%A %e %B %Y"}>
nicely shows up as :
woensdag 30 november 2005, so the localtime is now set correctly, but the next step would be how to convert the rest of dates according to the above?
I have tried to edit my news item templates like this:
<div class="item">
<div class="itemHead"><span class="itemTitle"><{$story.title}>span>div>
<div class="itemInfo">
<span class="itemPostDate"><{php}>
setlocale(LC_TIME, 'nl_NL');
<{/php}><{$story.posttime|date_format:"%A %e %B %Y"}>span>
div>
<div class="itemBody">
<p class="itemText"><{$story.text}>p>
div>
<div class="itemFoot">
<span class="itemPermaLink"><{$story.morelink}>span>
div>
div>
which again shows the correct date format, only it shows up like:
donderdag 1 januari 1970
any suggestions how to continue?