mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-20 02:00:55 +07: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;
|
|
}
|