summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Klapetek <[email protected]>2015-09-22 15:10:49 -0400
committerMartin Klapetek <[email protected]>2015-09-22 15:10:49 -0400
commit789b59b26f4e583769dbec5f0fbd2a851ea9a401 (patch)
tree5ce3b87621d9f426fdad8d596d8e1a1534ecf4f8
parent75157c7ff3703d4d93f7fda9860e1ba597ca8e55 (diff)
[carddav] Add a valid default past date to compare last sync datetime
Looks like the invalid datetime fails the comparison below
-rw-r--r--src/daemon/plugins/carddav/carddav-plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/plugins/carddav/carddav-plugin.cpp b/src/daemon/plugins/carddav/carddav-plugin.cpp
index a31bff1..98017fb 100644
--- a/src/daemon/plugins/carddav/carddav-plugin.cpp
+++ b/src/daemon/plugins/carddav/carddav-plugin.cpp
@@ -74,7 +74,7 @@ void KAccountsCardDavPlugin::syncAllAccounts()
Q_FOREACH (const quint32 accountId, syncedAccounts) {
KConfigGroup currentAccount = d->config->group("account" + accountId);
- QDateTime lastSync = QDateTime::fromString(currentAccount.readEntry("lastSync", QString()), Qt::ISODate);
+ QDateTime lastSync = QDateTime::fromString(currentAccount.readEntry("lastSync", QStringLiteral("2000-09-22T00:00:00+00:00")), Qt::ISODate);
if (QDateTime::currentDateTime() > lastSync) {
getCredentials(accountId);
}