Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebDAV's creation data returns in wrong format #5878

Closed
ArcticLampyrid opened this issue Jan 12, 2024 · 1 comment · Fixed by #6015
Closed

WebDAV's creation data returns in wrong format #5878

ArcticLampyrid opened this issue Jan 12, 2024 · 1 comment · Fixed by #6015
Labels
bug Something isn't working

Comments

@ArcticLampyrid
Copy link
Contributor

ArcticLampyrid commented Jan 12, 2024

Describe the bug / 问题描述

https://github.com/alist-org/alist/blob/86b35ae5cfec400871072356fec4dea88303195d/server/webdav/prop.go#L386-L388

WebDAV 协议返回的 creationdate 属性的格式是错误的。
根据 RFC4918 15.1 节,应当使用 RFC3339 中定义的格式,例:

<D:creationdate>1997-12-01T17:42:21Z</D:creationdate>

(与之不同的是,getlastmodified 则使用 RFC 1123 格式的时间)

此外,RFC3339 允许存在微秒部分,但 Windows 系统客户端不支持带微秒部分的 RFC3339 时间,如 1997-12-01T17:42:21.1234Z

@ArcticLampyrid ArcticLampyrid added the bug Something isn't working label Jan 12, 2024
Copy link

welcome bot commented Jan 12, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant