mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
plasma: use more recent date for calculating the moon phase in luna applet
to align with the references, other than that the precision loss is unavoidable Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
51cb069b3c
commit
84c456fb9f
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ static const qreal s_moonmonth = 29.53059;
|
|||
|
||||
static int kLunaPhase()
|
||||
{
|
||||
static const QDateTime firsnewmoon = QDateTime(QDate(1900, 1, 1), QTime(0, 0, 0), Qt::UTC);
|
||||
static const QDateTime firsnewmoon = QDateTime(QDate(1999, 8, 11), QTime(0, 0, 0), Qt::UTC);
|
||||
const QDateTime now = QDateTime::currentDateTime();
|
||||
const qreal gregoriandays = qreal(-now.daysTo(firsnewmoon.toLocalTime()));
|
||||
qreal moonphase = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue