[VkBridge] Remove non ascii chars from post date to correctly parse it (#1977)
This commit is contained in:
parent
9e58735b01
commit
98352845a1
1 changed files with 1 additions and 0 deletions
|
@ -379,6 +379,7 @@ class VkBridge extends BridgeAbstract
|
|||
return $time;
|
||||
} else {
|
||||
$strdate = $post->find('span.rel_date', 0)->plaintext;
|
||||
$strdate = preg_replace('/[\x00-\x1F\x7F-\xFF]/', ' ', $strdate);
|
||||
|
||||
$date = date_parse($strdate);
|
||||
if (!$date['year']) {
|
||||
|
|
Loading…
Reference in a new issue