Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions WikilogParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ public static function publish( $parser, $pubdate /*, $author... */ ) {

// First argument is the publish date
if ( !is_null( $pubdate ) ) {
wfSuppressWarnings(); // Shut up E_STRICT warnings about timezone.
Wikimedia\suppressWarnings(); // Shut up E_STRICT warnings about timezone.
$ts = strtotime( $pubdate );
wfRestoreWarnings();
Wikimedia\restoreWarnings();
if ( $ts > 0 ) {
$parser->mExtWikilog->mPubDate = wfTimestamp( TS_MW, $ts );
} else {
Expand Down