chore: always use local time
This commit is contained in:
parent
b8924cd6a9
commit
d8fa2b559a
1 changed files with 5 additions and 1 deletions
|
|
@ -98,7 +98,11 @@ func (t *Tariff) run(forecastG func() (string, error), done chan error, interval
|
|||
return backoff.Permanent(err)
|
||||
}
|
||||
for i, r := range data {
|
||||
data[i].Price = t.totalPrice(r.Price, r.Start)
|
||||
data[i] = api.Rate{
|
||||
Price: t.totalPrice(r.Price, r.Start),
|
||||
Start: r.Start.Local(),
|
||||
End: r.End.Local(),
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}, bo()); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue