Skip to content

Commit

Permalink
show current date
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Sep 28, 2023
1 parent 032c90d commit ff198a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ func (a *api) handleGetWeb3Index(c jape.Context) {

y, m, _ := now.Date()
start := time.Date(y-2, m, 1, 0, 0, 0, 0, now.Location())
end := now.AddDate(0, 0, 1)

days, err := a.sp.Periods(start, now, stats.PeriodDaily)
days, err := a.sp.Periods(start, end, stats.PeriodDaily)
if err != nil {
c.Error(err, http.StatusInternalServerError)
return
Expand Down

0 comments on commit ff198a5

Please sign in to comment.