From 24025f32f448d9bef1087bea01d771dd7e871996 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 28 Jan 2016 21:45:04 +0100 Subject: [PATCH] standardize datetime output --- apps/dav/lib/comments/commentsplugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/comments/commentsplugin.php b/apps/dav/lib/comments/commentsplugin.php index 921d6c7fb5d..282c14df1e8 100644 --- a/apps/dav/lib/comments/commentsplugin.php +++ b/apps/dav/lib/comments/commentsplugin.php @@ -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']);