From 98352845a14b9f2eb8925ad7a04a5f6cc6a5af06 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Wed, 10 Feb 2021 18:11:48 +0500 Subject: [PATCH] [VkBridge] Remove non ascii chars from post date to correctly parse it (#1977) --- bridges/VkBridge.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 89c11278..a09d1a20 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -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']) {