fix: WebDAV's creation date should use `RFC3339` format (#6015 close #5878)

pull/6056/head
ArcticLampyrid 2024-02-08 19:22:29 +08:00 committed by GitHub
parent da5e35578a
commit e49fda3e2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import (
"net/http"
"path"
"strconv"
"time"
"github.com/alist-org/alist/v3/internal/model"
)
@ -384,7 +385,7 @@ func findLastModified(ctx context.Context, ls LockSystem, name string, fi model.
return fi.ModTime().UTC().Format(http.TimeFormat), nil
}
func findCreationDate(ctx context.Context, ls LockSystem, name string, fi model.Obj) (string, error) {
return fi.CreateTime().UTC().Format(http.TimeFormat), nil
return fi.CreateTime().UTC().Format(time.RFC3339), nil
}
// ErrNotImplemented should be returned by optional interfaces if they