test
This commit is contained in:
parent
6ae4138d0f
commit
65b9b5111f
4
utils.go
4
utils.go
@ -74,7 +74,9 @@ func fromChatWarsDate(d string) (t time.Time, err error) {
|
|||||||
minute, _ := strconv.Atoi(r.ReplaceAllString(d, "${Minute}"))
|
minute, _ := strconv.Atoi(r.ReplaceAllString(d, "${Minute}"))
|
||||||
days := int(0)
|
days := int(0)
|
||||||
for i := 1059; i < year; i++ {
|
for i := 1059; i < year; i++ {
|
||||||
if i%4 == 0 {
|
if i == 1060 {
|
||||||
|
days += 365
|
||||||
|
else if i%4 == 0 {
|
||||||
days += 366
|
days += 366
|
||||||
} else {
|
} else {
|
||||||
days += 365
|
days += 365
|
||||||
|
Loading…
Reference in New Issue
Block a user