fix: use correct format for getlastmodified webdav property

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2025-05-10 19:46:29 +02:00 committed by Daniel
parent be587def0e
commit 1ac85a3298
2 changed files with 2 additions and 2 deletions

View file

@ -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),
];
}

View file

@ -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([]));
}