mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-09-24 18:59:27 +00:00
removed a wrong comment regarding PHP 5.3 function date_create_from_format, which is not suited to auto-detect a time string in any formats - only strtotime() can do it.
This commit is contained in:
parent
b9f38de383
commit
7ea7412751
Notes:
Thomas Gries
2012-02-15 00:11:14 +00:00
|
@ -316,7 +316,6 @@ class RSSParser {
|
|||
$txt = $this->sanitizeUrl( $item[ $info ] );
|
||||
break;
|
||||
case 'date':
|
||||
// PHP > 5.3.0 users can better use date_create_from_format method to reformat a date string
|
||||
$tempTimezone = date_default_timezone_get();
|
||||
date_default_timezone_set( 'UTC' );
|
||||
$txt = date( $this->date, strtotime( $this->escapeTemplateParameter( $item[ $info ] ) ) );
|
||||
|
|
Loading…
Reference in a new issue