diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2016-01-28 21:45:04 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2016-01-29 13:08:02 +0100 |
commit | 24025f32f448d9bef1087bea01d771dd7e871996 (patch) | |
tree | a49b5c7a648038b2862e4f5616a580e95571e76e /apps | |
parent | d2882b9021a0c46b5d1603d23e8c4705b7283990 (diff) | |
download | nextcloud-server-24025f32f448d9bef1087bea01d771dd7e871996.tar.gz nextcloud-server-24025f32f448d9bef1087bea01d771dd7e871996.zip |
standardize datetime output
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/comments/commentsplugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
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']); |