]> git.stg.codes - stg.git/commitdiff
Ticket 37. x2str() replaced by formatTime() for changePolicyTimeout
authorElena Mamontova <helenh463@gmail.com>
Thu, 10 Nov 2016 07:37:29 +0000 (09:37 +0200)
committerElena Mamontova <helenh463@gmail.com>
Thu, 10 Nov 2016 07:37:29 +0000 (09:37 +0200)
in GET_TARIFFS::CreateAnswer() function.

projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp

index 9c75267480e9591544e920ddb2b28788ff3f08ac..daf4ef629af69934e1633f8ea3afdbd9b8b00761 100644 (file)
@@ -115,7 +115,7 @@ void GET_TARIFFS::CreateAnswer()
                   "<TraffType value=\"" + TARIFF::TraffTypeToString(it->tariffConf.traffType) + "\"/>" +
                   "<Period value=\"" + TARIFF::PeriodToString(it->tariffConf.period) + "\"/>" +
                   "<ChangePolicy value=\"" + TARIFF::ChangePolicyToString(it->tariffConf.changePolicy) + "\"/>" +
                   "<TraffType value=\"" + TARIFF::TraffTypeToString(it->tariffConf.traffType) + "\"/>" +
                   "<Period value=\"" + TARIFF::PeriodToString(it->tariffConf.period) + "\"/>" +
                   "<ChangePolicy value=\"" + TARIFF::ChangePolicyToString(it->tariffConf.changePolicy) + "\"/>" +
-                  "<ChangePolicyTimeout value=\"" + x2str(it->tariffConf.changePolicyTimeout) + "\"/>" +
+                  "<ChangePolicyTimeout value=\"" + formatTime(it->tariffConf.changePolicyTimeout) + "\"/>" +
                   "</tariff>";
         }
 
                   "</tariff>";
         }