Revision 333261356135 () - Diff

Link to this snippet: https://friendpaste.com/65LYrMtQquv6hyCl9vs2wu
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if ($article->metadata->published->getTimestamp() != $item->published->date->getTimestamp())
{
$article->metadata->published = $item->published->date;
$update = true;
}

if ($update)
{
if (!$article->guid)
{
$article->create();
continue;
}
$article->update();
}