mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01:00
webdav: add workaround for missing mtime - fixes #2420
This commit is contained in:
parent
5dac8e055f
commit
753cc63d96
@ -155,6 +155,12 @@ func (t *Time) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If time is missing then return the epoch
|
||||||
|
if v == "" {
|
||||||
|
*t = Time(time.Unix(0, 0))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// Parse the time format in multiple possible ways
|
// Parse the time format in multiple possible ways
|
||||||
var newT time.Time
|
var newT time.Time
|
||||||
for _, timeFormat := range timeFormats {
|
for _, timeFormat := range timeFormats {
|
||||||
|
Loading…
Reference in New Issue
Block a user