standardize datetime output

This commit is contained in:
Arthur Schiwon 2016-01-28 21:45:04 +01:00
parent d2882b9021
commit 24025f32f4
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class CommentsPlugin extends ServerPlugin {
$this->server->xml->namespaceMap[self::NS_OWNCLOUD] = 'oc';
$this->server->xml->classMap['DateTime'] = function(Writer $writer, \DateTime $value) {
$writer->write($value->format('Y-m-d H:i:s'));
$writer->write(\Sabre\HTTP\toDate($value));
};
$this->server->on('report', [$this, 'onReport']);