mirror of
https://github.com/outbackdingo/amnezia-client.git
synced 2026-01-27 18:18:11 +00:00
11 lines
285 B
C++
11 lines
285 B
C++
#include "apiUtils.h"
|
|
|
|
#include <QDateTime>
|
|
|
|
bool ApiUtils::isSubscriptionExpired(const QString &subscriptionEndDate)
|
|
{
|
|
QDateTime now = QDateTime::currentDateTime();
|
|
QDateTime endDate = QDateTime::fromString(subscriptionEndDate, Qt::ISODateWithMs);
|
|
return endDate < now;
|
|
}
|