Commit 44b11257 authored by David Jarvie's avatar David Jarvie
Browse files

Remove deprecated calls

parent d8c5a241
......@@ -773,7 +773,7 @@ void KAlarmApp::checkNextDueAlarm()
return; // there are no alarms pending
KDateTime nextDt = nextEvent->nextTrigger(KAEvent::ALL_TRIGGER).effectiveKDateTime();
KDateTime now = KDateTime::currentDateTime(Preferences::timeZone());
qint64 interval = now.secsTo_long(nextDt);
qint64 interval = now.secsTo(nextDt);
qCDebug(KALARM_LOG) << "now:" << qPrintable(now.toString(QStringLiteral("%Y-%m-%d %H:%M %:Z"))) << ", next:" << qPrintable(nextDt.toString(QStringLiteral("%Y-%m-%d %H:%M %:Z"))) << ", due:" << interval;
if (interval <= 0)
{
......
......@@ -281,7 +281,7 @@ void TrayWindow::updateStatus()
if (event && period > 0)
{
KDateTime dt = event->nextTrigger(KAEvent::ALL_TRIGGER).effectiveKDateTime();
qint64 delay = KDateTime::currentLocalDateTime().secsTo_long(dt);
qint64 delay = KDateTime::currentLocalDateTime().secsTo(dt);
delay -= static_cast<qint64>(period) * 60; // delay until icon to be shown
active = (delay <= 0);
if (!active)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment