mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
Merge pull request #2174 from alex2108/master
Fix time zone error in staggered versioning (fixes #2165)
This commit is contained in:
commit
59eeafbdfa
@ -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