Skip to content

Commit

Permalink
Simplify tzColon
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed May 6, 2019
1 parent 7f87930 commit 82172a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/HTMLPurifier/AttrDef/HTML5/Datetime.php
Expand Up @@ -175,7 +175,7 @@ public function parse($string)
}

$tzHour = $tzMinute = null;
$tzColon = $match['tzMinute'] === '' ? ':' : $match['tzColon'];
$tzColon = $match['tzColon'];

if ($match['tzZulu'] !== '') {
$tzHour = 'Z';
Expand Down

0 comments on commit 82172a7

Please sign in to comment.