inetrnal: rename Date to Time, make it a Text{Marshaler,Unmarshaler}

This commit is contained in:
Simon Ser
2020-01-15 19:32:59 +01:00
parent 3d37e49ca0
commit ae0541654a
2 changed files with 13 additions and 7 deletions

View File

@@ -238,7 +238,7 @@ var liveProps = map[xml.Name]PropfindFunc{
if fi.IsDir() {
return nil, &HTTPError{Code: http.StatusNotFound}
}
return &internal.GetLastModified{LastModified: internal.NewDate(fi.ModTime())}, nil
return &internal.GetLastModified{LastModified: internal.Time(fi.ModTime())}, nil
},
// TODO: getetag
}