From 4649beeb936b79d58c439579fb29aafaab7d9226 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Wed, 14 Nov 2018 11:38:29 +0200 Subject: ebike: use Moment.js correctly Fix "TypeError: Property 'unix' of object [object Object] is not a function" Task-number: QTBUG-71748 Change-Id: Ic8425c68271c7b57880f9a36ad03cbf3e5453461 Reviewed-by: Mikko Gronoff --- basicsuite/ebike-ui/StatsPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basicsuite/ebike-ui/StatsPage.qml b/basicsuite/ebike-ui/StatsPage.qml index 4cd1f58..2b3d418 100644 --- a/basicsuite/ebike-ui/StatsPage.qml +++ b/basicsuite/ebike-ui/StatsPage.qml @@ -59,7 +59,7 @@ Page { } function timestampToReadable(timestamp) { - return Moment.unix(timestamp).calendar(); + return moment.unix(timestamp).calendar(); } // On new trip data (save clicked), switch index to new trip -- cgit v1.2.3