1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 08:37:30 +02:00

[VkBridge] Remove non ascii chars from post date to correctly parse it (#1977)

This commit is contained in:
Eugene Molotov
2021-02-10 18:11:48 +05:00
committed by GitHub
parent 9e58735b01
commit 98352845a1

View File

@@ -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']) {