Skip to content

Commit

Permalink
VW: fix remaining charging duration
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Feb 11, 2022
1 parent b344862 commit f3300c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vehicle/vw/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ func (v *Provider) FinishTime() (time.Time, error) {
return time.Time{}, api.ErrNotAvailable
}

timestamp, err := time.Parse(time.RFC3339, rct.Timestamp)
return timestamp.Add(time.Duration(rct.Content) * time.Minute), err
return time.Now().Add(time.Duration(rct.Content) * time.Minute), nil
}

return time.Time{}, err
Expand Down

0 comments on commit f3300c0

Please sign in to comment.