[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kstars/gsoc2015-ekos] kstars/time: Take UTC into consideration when constructing a new KStarsData f
From: Jasem Mutlaq <mutlaqja () ikarustech ! com>
Date: 2015-08-31 22:02:23
Message-ID: E1ZWX9j-0006og-7Y () scm ! kde ! org
[Download RAW message or body]
Git commit b35e3954379a2baa22703d83399e6735a76b16f2 by Jasem Mutlaq.
Committed on 31/08/2015 at 22:01.
Pushed by mutlaqja into branch 'gsoc2015-ekos'.
Take UTC into consideration when constructing a new KStarsData from existing one
M +2 -0 kstars/time/kstarsdatetime.cpp
http://commits.kde.org/kstars/b35e3954379a2baa22703d83399e6735a76b16f2
diff --git a/kstars/time/kstarsdatetime.cpp b/kstars/time/kstarsdatetime.cpp
index ccdaaec..76ed422 100644
--- a/kstars/time/kstarsdatetime.cpp
+++ b/kstars/time/kstarsdatetime.cpp
@@ -31,6 +31,7 @@ KStarsDateTime::KStarsDateTime() : QDateTime()
KStarsDateTime::KStarsDateTime( const KStarsDateTime &kdt ) : QDateTime()
{
setDJD( kdt.djd() );
+ setUtcOffset(kdt.utcOffset());
}
/*KStarsDateTime::KStarsDateTime( const QDateTime &kdt ) :
@@ -50,6 +51,7 @@ KStarsDateTime::KStarsDateTime( const QDateTime &qdt ) :
QDate _d = qdt.date();
long double jdFrac = ( _t.hour()-12 + ( _t.minute() + ( _t.second() + \
_t.msec()/1000.)/60.)/60.)/24.; DJD = (long double)( _d.toJulianDay() ) + jdFrac;
+ setUtcOffset(qdt.utcOffset());
}
KStarsDateTime::KStarsDateTime( const QDate &_d, const QTime &_t ) :
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic