[Marble-devel] Review Request: Fix Julian Day number handling

John Layt johnlayt at googlemail.com
Fri Sep 17 15:55:51 CEST 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/5374/
-----------------------------------------------------------

Review request for marble.


Summary
-------

Was looking for something else when I stumbled across this and couldn't help but fix it :-)

Remove Julian Day calculation from MarbleClock as QDate already provides a method for this (in fact it is how QDate internally stores dates, so it's way more efficient and 100% accurate).

Also, I'm no expert, but the timezone implementation doesn't look good to me.  It's just a shame you can't use KDateTime/KTimeZone/KTimeZoneWidget which would do it all for you correctly.  I'll try find time to find a better way.


Diffs
-----

  /trunk/KDE/kdeedu/marble/src/lib/MarbleClock.h 1176287 
  /trunk/KDE/kdeedu/marble/src/lib/MarbleClock.cpp 1176287 
  /trunk/KDE/kdeedu/marble/src/lib/SunLocator.cpp 1176287 

Diff: http://svn.reviewboard.kde.org/r/5374/diff


Testing
-------

Ran Marble and tested Sun functions, appears to work OK to me.


Thanks,

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/marble-devel/attachments/20100917/cd895da0/attachment.htm 


More information about the Marble-devel mailing list