mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Support getlastmodified property in REPORT requests.
This commit is contained in:
parent
83ec11403a
commit
58b88437b3
@ -121,6 +121,9 @@ function calendar_to_xml( $properties, $item ) {
|
||||
$contentlength = strlen($caldav_data);
|
||||
$prop->NewElement($k, $contentlength );
|
||||
break;
|
||||
case 'getlastmodified':
|
||||
$prop->NewElement($k, ISODateToHTTPDate($item->modified) );
|
||||
break;
|
||||
case 'calendar-data':
|
||||
$reply->CalDAVElement($prop, $k, $caldav_data );
|
||||
break;
|
||||
@ -241,6 +244,9 @@ function component_to_xml( $properties, $item ) {
|
||||
$contentlength = strlen($caldav_data);
|
||||
$prop->NewElement($k, $contentlength );
|
||||
break;
|
||||
case 'getlastmodified':
|
||||
$prop->NewElement($k, ISODateToHTTPDate($item->modified) );
|
||||
break;
|
||||
case 'calendar-data':
|
||||
if ( $type == 'calendar' ) $reply->CalDAVElement($prop, $k, $caldav_data );
|
||||
else $unsupported[] = $k;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user