0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-26 05:15:42 +00:00

[SamMobileBridge] Add date handling

This commit is contained in:
Florent VIOLLEAU 2025-08-19 02:18:10 +02:00
parent c791b8ed83
commit d4a7ba4956

View File

@ -43,7 +43,7 @@ class SamMobileUpdateBridge extends BridgeAbstract
$item['uri'] = $uri; $item['uri'] = $uri;
$item['title'] = $title; $item['title'] = $title;
$item['author'] = self::MAINTAINER; $item['author'] = self::MAINTAINER;
$item['date'] = $td[2]; $item['timestamp'] = (new DateTime($td[2]->innertext))->getTimestamp();
$item['content'] = $text; $item['content'] = $text;
$item['uid'] = hash('sha256', $item['title']); $item['uid'] = hash('sha256', $item['title']);