Hi, I need the News module to display the date in European Format i.e. dd,mm,yy
I read the help on news module but where do I add or change the date parameter
Thanks in advance - Pat
Changing parameters in News Module
Re: Changing parameters in News Module
Extensions -> modules -> click on news row help link
(optional) dateformat="%b %d, %Y" - Format to display the article's post date with. This is based on the strftime function and can be used in your template with $entry->formatpostdate. It defaults to %x, which is the default date format for the server's locale.
Re: Changing parameters in News Module
Please try this as option
Code: Select all
dateformat="%d,%m,%y"
Re: Changing parameters in News Module
Hi thanks for the suggestion. I posted a news item and its fine. The sample news item which came with the module threw me out because it was 7/31/06 - thanks again
Re: Changing parameters in News Module
But normaly the news module should use the locale you set in config file if I am not wrong.
I found another post that suggest to create a tag that call the setlocale() and place it just before the news module call.
http://forum.cmsmadesimple.org/index.ph ... 780.0.html
and it should solve the problem....
But if it works it seem to be a bug in the core module that doesn't set the locale.
Using the locale, beside the correct format, allow also to printout the appropriate string for the month and day of the week (i.e. for Italian Giugno rather than June).
does anybody solveded the problem? Is it just a metter of passing the correct locale in conf file?
I tried several format but none of them worked.
I found another post that suggest to create a tag that call the setlocale() and place it just before the news module call.
http://forum.cmsmadesimple.org/index.ph ... 780.0.html
and it should solve the problem....
But if it works it seem to be a bug in the core module that doesn't set the locale.
Using the locale, beside the correct format, allow also to printout the appropriate string for the month and day of the week (i.e. for Italian Giugno rather than June).
does anybody solveded the problem? Is it just a metter of passing the correct locale in conf file?
I tried several format but none of them worked.