teslamate icon indicating copy to clipboard operation
teslamate copied to clipboard

Drive stats page showing value in miles when Km selected

Open gmarques33 opened this issue 4 years ago • 1 comments

Describe the bug

Drive stats page showing value in miles when km selected.

If I got to the drive stats page it says that I've driven 13 km, but it is 13 miles. I expected to see 21 km there.

Screenshot 2021-04-02 at 18 00 37

The sum of all my trips is 21.9 km, that is 13.61 miles.

Screenshot 2021-04-02 at 18 08 23

Expected behavior Show the correct value in KM in the stats page.

How to reproduce it (as minimally and precisely as possible): Set the UI to show values in KM and go to the drive stats page.

Environment

  • TeslaMate version: 1.22.0
  • Type of installation: Docker
  • OS TeslaMate is installed on: Raspbian 10
  • User OS & Browser: Mac OS - Chrome

gmarques33 avatar Apr 02 '21 17:04 gmarques33

This is not a km/mi conversion issue. It's a timeframe issue. dashboard mi = date version, the drives use timestamp. It can be fixed, but it is not a km/mi issue.

Dulanic avatar Apr 14 '21 18:04 Dulanic