Fix time zone error in staggered versioning (fixes #2165)

This commit is contained in:
Alexander Graf 2015-08-19 08:16:31 -07:00
parent 1487552b48
commit abc606608c

View File

@ -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)