Skip to content

Commit

Permalink
fix #333 #335 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Irfan committed Jan 10, 2021
1 parent 3e2904b commit efd1701
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Parser/User/History/HistoryItemParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ public function getIncrement(): int
*/
public function getDate(): \DateTimeImmutable
{
$date = JString::cleanse(
Parser::removeChildNodes(
$this->crawler->filterXPath('//td[2]')
)->text()
$date = JString::UTF8NbspTrim(
JString::cleanse(
Parser::removeChildNodes(
$this->crawler->filterXPath('//td[2]')
)->text()
)
);

return new \DateTimeImmutable($date, new \DateTimeZone('UTC'));
Expand Down

0 comments on commit efd1701

Please sign in to comment.