Bug 119960

Summary: Non-UT local time is taken as UT by KStars Calculator
Product: [Applications] kstars Reporter: Shriramana Sharma <samjnaa>
Component: generalAssignee: kstars
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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

TODO: 
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