mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Contacts: Save last-modified time in REV property if not set
This commit is contained in:
parent
6bd0aad117
commit
b77132edbe
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue