Files
spend-sparrow/internal/service/clock.go
Tim Wundenberg 3df9fab25b
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
fix(dashboard): #163 month selection on first load
2025-06-16 13:00:35 +02:00

18 lines
213 B
Go

package service
import "time"
type Clock interface {
Now() time.Time
}
type ClockImpl struct{}
func NewClock() Clock {
return &ClockImpl{}
}
func (c *ClockImpl) Now() time.Time {
return time.Now().UTC()
}