Skip to content
Snippets Groups Projects
Commit b77132ed authored by Bart Visscher's avatar Bart Visscher
Browse files

Contacts: Save last-modified time in REV property if not set

parent 6bd0aad1
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,10 @@ class OC_Contacts_App {
$vcard->setString('N', 'Unknown;Name;;;');
}
}
if (!is_null($vcard) && !isset($vcard->REV)) {
$rev = new DateTime('@'.$card['lastmodified']);
$vcard->setString('REV', $rev->format(DateTime::W3C));
}
return $vcard;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment