fix: Return date as a string instead of local time
This commit is contained in:
@@ -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