X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0907aa4037b12b6b88ee24495d4577a064d4f8db..6fd1ed115d0f47b3e88f54c89fa3295446f34851:/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp diff --git a/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp b/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp index 7a7a9b90..38e9a260 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp @@ -375,7 +375,7 @@ if ((it = structVal.find("tariff")) != structVal.end()) if (newTariff) { const auto currentTariff = ptr->GetTariff(); - std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, stgTime); + std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, time(NULL)); if (message.empty()) { if (ptr->GetProperties().tariffName.Get() != tariff)