fix: Return date as a string instead of local time

This commit is contained in:
abdus committed 2023-04-05 07:48:19 +02:00
1 parent 64a4814eef
commit ccc04dd9ee
6 files changed
+87 -28

No files matched your search

+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(),