Local update.

Merge branch 'master' of https://gitlab.com/davical-project/davical
This commit is contained in:
Cyril Giraud 2014-09-22 22:56:14 +02:00
commit 4f6e3ecd84

View File

@ -98,6 +98,11 @@ elseif( preg_match('{^(\d{8})(\d{6})Z?}', $last_modified, $matches) ) {
$vcard->ClearProperties('REV');
$vcard->AddProperty('REV',$last_modified);
}
elseif( !preg_match('{^\d{8}T\d{6}Z$}', $last_modified) ) {
$last_modified = gmdate( 'Ymd\THis\Z' );
$vcard->ClearProperties('REV');
$vcard->AddProperty('REV',$last_modified);
}
$rendered_card = $vcard->Render();
$etag = md5($rendered_card);