This commit is contained in:
shoopea 2019-05-09 11:14:36 +08:00
parent dcfee33204
commit ffbd0513f9

2
def.go
View File

@ -110,7 +110,7 @@ func fromChatWarsDate(d string) (t time.Time, err error) {
log.Printf("fromChatWarsDate : Minute : %s\n", r.ReplaceAllString(d, "${Minute}"))
minute, _ := strconv.Atoi(r.ReplaceAllString(d, "${Minute}"))
days := int(0)
for i := 1059; i < strconv.Atoi(r.ReplaceAllString(d, "${Year}")); i++ {
for i := 1059; i < year; i++ {
days = days + 365
}
for i := 1; i < chatWarsMonth[r.ReplaceAllString(d, "${Month}")]; i++ {