[Typo3] tt_news does not show day of month
ben van 't ende [netcreators]
ben at netcreators.nl
Tue Jul 19 16:58:17 CEST 2005
mamax wrote:
> hi,
>
> I changed the format of the template to %d.%m.%y like all the docs tell but
> i don't get the day displayed,
> instead I get ".07.05 15:49".
>
> I tried several different settings (language settings, too), but no effect.
> What's wrong??
>
> This is my constants part of the template:
> ------------------->
>
> config.language = de
> config.locale_all = de_DE.ISO8859-1
>
> plugin.tt_news {
> getRelatedCObject.20.strftime = %d.%m.%y %H:%M
> displaySingle.date_stdWrap.strftime= %d.%m.%y
> displayList.date_stdWrap.strftime= %d.%m.%y
> displayLatest.date_stdWrap.strftime= %d.%m.%y
> displayLatest.time_stdWrap.strftime= %H:%M
>
> templateFile = fileadmin/templates/newsflash.html
> }
>
> ..and thats the piece of code in the template:
> --------------------->
> <span class="nav2">###NEWS_DATE### ###NEWS_TIME### <br /></span>
Hi Markus,
Use your real name as sender when you are posting.
I wouldn't know exactly what your problem could be. Try this script
(date.php) and adapt it to your needs. Maybe it can help you determine
what is wrong.
<?php
/* Set locale to Dutch */
setlocale(LC_ALL, 'nl_NL');
/* Output: vrijdag 22 december 1978 */
echo strftime("%A %e %B %Y");
/* try different possible locale names for german as of PHP 4.3.0 */
$loc_nl = setlocale(LC_ALL, 'nl_NL at euro', 'nl_NL', 'nl');
echo " [Preferred locale for dutch on this system is '$loc_nl']";
?>
HTH
ben
--
netcreators :: creation and innovation
www.netcreators.nl - www.typo3.nl
More information about the TYPO3-english
mailing list