Date-time dialog: seconds change when changing hours or minutes

Bug #608238 reported by Peter Mousley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Low
Unassigned

Bug Description

When changing the hour or minute in the date-time dialog, the seconds value changes (it typically decrements by 1). Thanks to Pep i Mercè Mas la Roca for finding and reporting this bug.

I've traced the bug back to the calculation of hours/minutes/seconds from the Julian date - there is a floating-point truncation error. For example, a Julian date converted to seconds might be calculated as 9.9999996, which is truncated to 9 instead of rounded to 10. I'll propose a merge that fixes it.

Peter

Related branches

Changed in stellarium:
status: New → Fix Committed
importance: Undecided → Low
Changed in stellarium:
milestone: none → 0.10.6
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.