]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp
Remove extra debug.
[stg.git] / projects / stargazer / plugins / configuration / rpcconfig / user_helper.cpp
index 7a7a9b906fd349450dbea5c817f9233237885f6c..38e9a260ebd2b8783f5ef52791e65eeae4e75b0a 100644 (file)
@@ -375,7 +375,7 @@ if ((it = structVal.find("tariff")) != structVal.end())
     if (newTariff)
         {
         const auto currentTariff = ptr->GetTariff();
     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)
         if (message.empty())
             {
             if (ptr->GetProperties().tariffName.Get() != tariff)