Added moon route and changed Date fields from pointers to values

This commit is contained in:
2025-06-18 10:44:19 +02:00
parent 87605024c7
commit a87b6a0c06
10 changed files with 188 additions and 28 deletions

View File

@@ -86,7 +86,7 @@ func GetWeather(city *types.City, apiKey string) (types.Weather, error) {
// Format UNIX timestamp as 'YYYY-MM-DD'
utcTime := time.Unix(int64(weather.Current.Timestamp), 0)
weatherDate := &types.ZephyrDate{Date: utcTime.UTC()}
weatherDate := types.ZephyrDate{Date: utcTime.UTC()}
// Set condition accordingly to weather description
var condition string