From f885690bd783b2d31221ecce438afbda1e8f0eb1 Mon Sep 17 00:00:00 2001 From: jinsu Date: Wed, 10 Dec 2025 14:56:24 +0900 Subject: [PATCH] use const --- internal/app/flow/flow.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/flow/flow.go b/internal/app/flow/flow.go index 4d48ea9..8c2c2f0 100644 --- a/internal/app/flow/flow.go +++ b/internal/app/flow/flow.go @@ -94,7 +94,7 @@ func (*Flow) mergeWeathers(dateKey string, location *time.Location, weathers []* filteredWeathers := make(map[string]*domain.Weather) for _, weather := range weathers { - key := string(weather.Source()) + weather.TargetDate().Format("2006-01-02") + key := string(weather.Source()) + weather.TargetDate().Format(time.DateTime) existing, ok := filteredWeathers[key] if !ok { @@ -151,7 +151,7 @@ func (*Flow) groupByDate(weathers []*domain.Weather, location *time.Location) ma for _, weather := range weathers { localDate := weather.TargetDate().In(location) - dateKey := time.Date(localDate.Year(), localDate.Month(), localDate.Day(), 0, 0, 0, 0, location).Format("2006-01-02") + dateKey := time.Date(localDate.Year(), localDate.Month(), localDate.Day(), 0, 0, 0, 0, location).Format(time.DateOnly) weathersByDate[dateKey] = append(weathersByDate[dateKey], weather) }