mirror of
https://github.com/sigoden/dufs.git
synced 2026-06-07 23:16:54 +03:00
[PR #366] fix: timestamp format of getlastmodified in dav xml #6829
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/sigoden/dufs/pull/366
State: closed
Merged: Yes
RFC4918 (WebDAV) requires the
getlastmodifiedproperty to be a date as returned in aLast-Modifiedheader. It also specifically references therfc1123-dateABNF definition (though confusingly, as defined in RFC 2616), which always ends inGMT.Note that HTTP/1.1 clients must accept timestamps as Dufs currently generates them, but servers are not allowed to generate them, and thus by reference, WebDAV servers can't either.
Unfortunately,
chronodoesn't have ato_rfc1123(orto_rfc2616) function, but all the parts are available viaformat.I discovered this via error messages produced by the DAVx5 Android App:
dav4jvm : [at.bitfire.dav4jvm.HttpUtils] Couldn't parse HTTP date: Wed, 21 Feb 2024 21:03:42 +0000, ignoring