Good night people!
I have a problem with a php script that links to cms phpbb, which returns the topics of certain forums and displays them in RSS 2.0 format.
The problem is that the date, when processed by phpbb's own method format_date
, in the format "D, d M Y H:i:s O"
, is returned with the values of day and month in Portuguese, and I need these values in English, because the services that I use end up bugging the date in Portuguese.
I had seen in other questions here in the stack about the possibility of changing the locale to do such processing, but I doubt the effectiveness of this under the phpbb ecosystem.
An important detail is that the original data to be filtered by this method (variable $topic_date
) is a UNIX timestamp, which means that it can be used in another function, and according to the method documentation, I can use any format supported by the php date () function in the format_date
function.
EDIT: In short:
PHPBB can return me a timestamp or in the proper format of RSS, but with the names in Portuguese:
<pubDate>Qui, 02 Out 2002 15:00:00 +0200</pubDate>
But I need it in English (because it duplicated services like twitterfeed), exactly in that format:
<pubDate>Wed, 02 Oct 2002 15:00:00 +0200</pubDate>
So, is there a way to do this?
Thank you in advance.