fix: Return date as a string instead of local time
This commit is contained in:
1 parent
64a4814eef
commit
ccc04dd9ee
6 files changed
+87
-28
No files matched your search
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user