From 66bf7a39ef62ea58745d9f7aca11b11ce713f8ca Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 14 Jun 2009 11:23:35 +1200 Subject: [PATCH] Fix date display in Principal XML output. Might as well support getctag too. --- inc/CalDAVPrincipal.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/CalDAVPrincipal.php b/inc/CalDAVPrincipal.php index 375a0c24..708d043c 100644 --- a/inc/CalDAVPrincipal.php +++ b/inc/CalDAVPrincipal.php @@ -336,11 +336,11 @@ class CalDAVPrincipal break; case 'DAV::getlastmodified': - $prop->NewElement("getlastmodified", $this->updated ); + $prop->NewElement("getlastmodified", ISODateToHTTPDate($this->updated) ); break; case 'DAV::creationdate': - $prop->NewElement("creationdate", $this->joined ); + $prop->NewElement("creationdate", ISODateToHTTPDate($this->joined) ); break; case 'DAV::group-member-set': @@ -432,6 +432,9 @@ class CalDAVPrincipal $prop->NewElement( $reply->Tag($tag)); break; + case 'http://calendarserver.org/ns/:getctag': + $reply->CalendarServerElement( $prop, "getctag", '"'.md5($this->username . $this->updated).'"' ); + break; case 'DAV::getetag': $reply->DAVElement( $prop, "getetag", '"'.md5($this->username . $this->updated).'"' ); break;