VW: fix remaining charging duration
This commit is contained in:
parent
b344862d79
commit
f3300c04b6
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue