From 1bfce5e599831f5b2718b27537519472b906f4dc Mon Sep 17 00:00:00 2001 From: Mikko Ahlroth Date: Mon, 24 Feb 2014 14:49:38 +0200 Subject: [PATCH] I am not a clever man. There are 86400 seconds in a day. Fixes day display bug --- qml/harbour-sailtime.qml | 2 +- qml/pages/AboutPage.qml | 2 +- rpm/harbour-sailtime.spec | 4 ++-- rpm/harbour-sailtime.yaml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qml/harbour-sailtime.qml b/qml/harbour-sailtime.qml index ad73feb..473ac24 100644 --- a/qml/harbour-sailtime.qml +++ b/qml/harbour-sailtime.qml @@ -103,7 +103,7 @@ ApplicationWindow // Divide uptime to days, hours and minutes function divideUptime(seconds) { - var days = Math.floor(seconds / 84600); + var days = Math.floor(seconds / 86400); var hours = Math.floor(seconds / 3600 % 24); var minutes = Math.floor(seconds / 60 % 60); return { diff --git a/qml/pages/AboutPage.qml b/qml/pages/AboutPage.qml index acaa628..121a605 100644 --- a/qml/pages/AboutPage.qml +++ b/qml/pages/AboutPage.qml @@ -29,7 +29,7 @@ Page { Label { anchors.horizontalCenter: parent.horizontalCenter - text: "SailTime 1.1.1" + text: "SailTime 1.1.2" color: Theme.highlightColor font.pixelSize: Theme.fontSizeLarge } diff --git a/rpm/harbour-sailtime.spec b/rpm/harbour-sailtime.spec index 8e90210..3bf2c37 100644 --- a/rpm/harbour-sailtime.spec +++ b/rpm/harbour-sailtime.spec @@ -13,8 +13,8 @@ Name: harbour-sailtime %{!?qtc_make:%define qtc_make make} %{?qtc_builddir:%define _builddir %qtc_builddir} Summary: SailTime -Version: 1.1.1 -Release: 2 +Version: 1.1.2 +Release: 1 Group: Qt/Qt License: MIT Expat licence URL: http://example.org/ diff --git a/rpm/harbour-sailtime.yaml b/rpm/harbour-sailtime.yaml index c1ff5ef..a96a5bd 100644 --- a/rpm/harbour-sailtime.yaml +++ b/rpm/harbour-sailtime.yaml @@ -1,7 +1,7 @@ Name: harbour-sailtime Summary: SailTime -Version: 1.1.1 -Release: 2 +Version: 1.1.2 +Release: 1 Group: Qt/Qt URL: http://example.org/ License: "MIT Expat licence"