I'm generating an XML-file from tt_news. Currently the ###NEWS_DATE###
marker gives me the date in the following format:
Tue, 27 Aug 2013 09:26:00 +0200
I want to change this to 2013-08-27
. How can I do this?
I've searched a bit and found a similar solution. This should work imho for the XML type:
plugin.tt_news {
displayXML {
date_stdWrap.strftime = %Y-%m-%d
}
}
But the date format stays the same. What I'm doing wrong?
The
displayXML
can have several different format options. Depending on what you have set there, the format is defined by the standard (like RSS or ATOM). Take a look in the news plugin, there are the following lines:So by default, you can't change that. Which format do you use and why do you want differ from the standard?