Skip to content

Commit

Permalink
fix: yesterday
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Apr 1, 2024
1 parent 7059bca commit c83833a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/pkd/gasstation/gsrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ func createCodeTimeSliceBuckets(postCodePostCodeLocationMap map[int]pcmodel.Post
for _, myPostCodeLocation := range postCodePostCodeLocationMap {
myPostCode := postcode.FormatPostCode(myPostCodeLocation.PostCode)
for _, myGasStation := range postCodeGasStationsMap[myPostCode] {
yesterday := time.Now().AddDate(0, 0, -1).Round(time.Hour)
yesterday := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 0, 0, 0, 0, time.Local).AddDate(0, 0, -1).Round(time.Hour)
//yesterday := time.Now().AddDate(0, 0, -1).Round(time.Hour)
//15 min slices
timeSlices := make([]time.Time, 0)
//15 min buckets
Expand Down

0 comments on commit c83833a

Please sign in to comment.