X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..2196a3a0cdc5384c082febb7f4aa5994cc7d80db:/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp?ds=sidebyside 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)