mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Fix time zone error in staggered versioning (fixes #2165)
This commit is contained in:
parent
1487552b48
commit
abc606608c
@ -182,7 +182,8 @@ func (v Staggered) expire(versions []string) {
|
||||
continue
|
||||
}
|
||||
|
||||
versionTime, err := time.Parse(TimeFormat, filenameTag(file))
|
||||
loc, _ := time.LoadLocation("Local")
|
||||
versionTime, err := time.ParseInLocation(TimeFormat, filenameTag(file), loc)
|
||||
if err != nil {
|
||||
if debug {
|
||||
l.Debugf("Versioner: file name %q is invalid: %v", file, err)
|
||||
|
Loading…
Reference in New Issue
Block a user