diff --git a/lib/app.php b/lib/app.php index 914b480e..d8d1d3ac 100644 --- a/lib/app.php +++ b/lib/app.php @@ -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; }