mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
versionTime, err := time.Parse(TimeFormat, filenameTag(file))
|
loc, _ := time.LoadLocation("Local")
|
||||||
|
versionTime, err := time.ParseInLocation(TimeFormat, filenameTag(file), loc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if debug {
|
if debug {
|
||||||
l.Debugf("Versioner: file name %q is invalid: %v", file, err)
|
l.Debugf("Versioner: file name %q is invalid: %v", file, err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user