Bug 381704 - Astrocalculator, Day Duration module, Day length in wrong format
Summary: Astrocalculator, Day Duration module, Day length in wrong format
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-27 01:13 UTC by H.P. Bigger
Modified: 2017-07-03 08:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 17.08


Attachments
Calculator - KStars (90.88 KB, image/png)
2017-06-27 01:13 UTC, H.P. Bigger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description H.P. Bigger 2017-06-27 01:13:52 UTC
Created attachment 106325 [details]
Calculator - KStars

Astrocalculator, Day Duration module, Day length in wrong format:

Instead of format "h:m:s AP t" should be in format "hh:mm:ss"

Eg. https://docs.kde.org/trunk5/en/kdeedu/kstars/tool-calculator.html#calc-dayduration
Day length: 3:25:06 PM EEST (point in time)
should be
Day length: 15:25:06 (duration / timespan)


Probable cause:
modcalcdaylength.cpp, line 147:  daylengthString = QLocale().toString(daylength);


Possible fix:

daylengthString = daylength.toString("hh:mm:ss");
or
daylengthString = daylength.toString(Qt::ISODate);
Comment 1 Jasem Mutlaq 2017-07-03 08:59:55 UTC
Git commit a275e0cd0f8fcfa1dfbf16b839edc18dfe74ce4e by Jasem Mutlaq.
Committed on 03/07/2017 at 08:59.
Pushed by mutlaqja into branch 'master'.

Fix day duration format.
FIXED-IN:17.08

M  +2    -1    kstars/tools/modcalcdaylength.cpp

https://commits.kde.org/kstars/a275e0cd0f8fcfa1dfbf16b839edc18dfe74ce4e