test
This commit is contained in:
parent
d824573996
commit
097734886f
2
util.go
2
util.go
@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
func toDate(d uint32) time.Time {
|
func toDate(d uint32) time.Time {
|
||||||
t, _ := time.Parse("2006-01-02T15:04:05+07:00", "0000-01-01 00:00:00+00:00")
|
t, _ := time.Parse("2006-01-02T15:04:05+07:00", "0000-01-01 00:00:00+00:00")
|
||||||
t = t.AddDate(0, 0, int(d-1))
|
t = t.AddDate(0, 0, int(d-366))
|
||||||
return t
|
return t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user