forked from TrueCloudLab/rclone
b2: ignore malformed src_last_modified_millis
This fixes rclone returning `listing failed: strconv.ParseInt` errors when listing files which have a malformed `src_last_modified_millis`. This is uploaded by the client so care is needed in interpreting it as it can be malformed. Fixes #3065
This commit is contained in:
parent
626f0d1886
commit
6fb1c8f51c
1 changed files with 1 additions and 1 deletions
|
@ -1213,7 +1213,7 @@ func (o *Object) parseTimeString(timeString string) (err error) {
|
||||||
unixMilliseconds, err := strconv.ParseInt(timeString, 10, 64)
|
unixMilliseconds, err := strconv.ParseInt(timeString, 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fs.Debugf(o, "Failed to parse mod time string %q: %v", timeString, err)
|
fs.Debugf(o, "Failed to parse mod time string %q: %v", timeString, err)
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
o.modTime = time.Unix(unixMilliseconds/1E3, (unixMilliseconds%1E3)*1E6).UTC()
|
o.modTime = time.Unix(unixMilliseconds/1E3, (unixMilliseconds%1E3)*1E6).UTC()
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue