fix(dashboard): #163 month selection on first load
This commit was merged in pull request #183.
This commit is contained in:
@@ -13,5 +13,5 @@ func NewClock() Clock {
|
||||
}
|
||||
|
||||
func (c *ClockImpl) Now() time.Time {
|
||||
return time.Now()
|
||||
return time.Now().UTC()
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log/slog"
|
||||
"spend-sparrow/internal/db"
|
||||
"spend-sparrow/internal/types"
|
||||
"time"
|
||||
@@ -82,7 +81,5 @@ func (s Dashboard) Summary(ctx context.Context, user *types.User, month time.Tim
|
||||
summary.Total = summary.Income + summary.Expenses
|
||||
summary.Month = month
|
||||
|
||||
slog.Info("Dashboard summary", "summary", summary)
|
||||
|
||||
return &summary, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user