fix(dashboard): #163 month selection on first load
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 4m54s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 4m56s

This commit was merged in pull request #183.
This commit is contained in:
2025-06-16 12:52:49 +02:00
parent 6b8059889d
commit 3df9fab25b
6 changed files with 8 additions and 8 deletions

View File

@@ -13,5 +13,5 @@ func NewClock() Clock {
}
func (c *ClockImpl) Now() time.Time {
return time.Now()
return time.Now().UTC()
}

View File

@@ -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
}