mirror of
https://github.com/amnezia-vpn/DefaultVPN.git
synced 2026-05-17 08:36:37 +03: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;
|
||
|
|
}
|