mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: use correct format for getlastmodified webdav property
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
be587def0e
commit
1ac85a3298
2 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ class AppleProvisioningNode implements INode, IProperties {
|
|||
|
||||
return [
|
||||
'{DAV:}getcontentlength' => 42,
|
||||
'{DAV:}getlastmodified' => $datetime->format(\DateTimeInterface::RFC2822),
|
||||
'{DAV:}getlastmodified' => $datetime->format(\DateTimeInterface::RFC7231),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class AppleProvisioningNodeTest extends TestCase {
|
|||
|
||||
$this->assertEquals([
|
||||
'{DAV:}getcontentlength' => 42,
|
||||
'{DAV:}getlastmodified' => 'Sat, 01 Jan 2000 00:00:00 +0000',
|
||||
'{DAV:}getlastmodified' => 'Sat, 01 Jan 2000 00:00:00 GMT',
|
||||
], $this->node->getProperties([]));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue