Bug 119960 - Non-UT local time is taken as UT by KStars Calculator
Summary: Non-UT local time is taken as UT by KStars Calculator
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kstars
Depends on:
Reported: 2006-01-12 10:11 UTC by Shriramana Sharma
Modified: 2006-01-21 02:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Shriramana Sharma 2006-01-12 10:11:19 UTC
Version:           1.2.0 (using KDE 3.5.0 Level "a" , SUSE 10.0 UNSUPPORTED)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-smp

In all the panels of KStars Calculator where UT is present, the program automatically inserts the *local time* into the UT field. 

For instance, I am at India UTC+0530 and I get 14:32 in all the UT boxes when 14:32 is the *local time*. Correct UT is obviously 09:02. 

Even when I hit the "Now" button in the Julian Day converter this error happens.

This bug is easily testable by checking the ecliptic longitude of the moon (which travels fastest geocentrically).

At what KStars thinks is 14:35 UT on 2006-01-12, it reports the ecliptic longitude of the moon as 92 d 32 m. The actual ecliptic longitude at that time, which is actually 09:05 UT is 89 d 05 m. This difference of three degrees is caused by the +05:30 time difference between UT and my time zone.

OTOH, my calculations show that the graphical rendering part of KStars plots the moon at the correct 89 d position.
Comment 1 kstars 2006-01-21 02:22:56 UTC
SVN commit 500721 by harris:

Fixing bug 119960; partial fix of 119963

11960: All time fields in the astrocalculator now show the 
current UT, not local time

119963: modified the layout of the JD module, moved 
Convert/Clear to the bottom
Increased minimum width of date fields

move Now button (still considering it)
update all 3 fields when Now is pressed
Fix manual input in Date line edit

Thanks for the report.  Will port to trunk as well.

BUG: 119960
CCBUG: 119963

 M  +7 -7      kstarsdata.cpp  
 M  +5 -1      tools/modcalcapcoord.cpp  
 M  +4 -1      tools/modcalcazel.cpp  
 M  +7 -5      tools/modcalcdaylengthdlg.ui  
 M  +6 -1      tools/modcalcjd.cpp  
 M  +133 -120  tools/modcalcjddlg.ui  
 M  +2 -1      tools/modcalcplanets.cpp  
 M  +7 -5      tools/modcalcplanetsdlg.ui  
 M  +4 -1      tools/modcalcvlsr.cpp