Merge pull request #2174 from alex2108/master

Fix time zone error in staggered versioning (fixes #2165)
This commit is contained in:
Jakob Borg 2015-08-19 20:25:24 +02:00
commit 59eeafbdfa

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)