fix: Return date as a string instead of local time

This commit is contained in:
2023-04-05 07:48:19 +02:00
parent 64a4814eef
commit ccc04dd9ee
6 changed files with 87 additions and 28 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func (d Provider) Get(ctx context.Context, location string) ([]prayer.Times, err
}
row := prayer.Times{
Date: parsedDate,
Date: parsedDate.Format(time.DateOnly),
Fajr: el.Find("td:nth-of-type(2)").Text(),
Sunrise: el.Find("td:nth-of-type(3)").Text(),
Dhuhr: el.Find("td:nth-of-type(4)").Text(),