]> git.stg.codes - stg.git/commitdiff
Ticket 37. WriteString() changed to WriteTime() and formatTime() remowed
authorElena Mamontova <helenh463@gmail.com>
Wed, 28 Dec 2016 13:32:32 +0000 (15:32 +0200)
committerElena Mamontova <helenh463@gmail.com>
Wed, 28 Dec 2016 13:32:32 +0000 (15:32 +0200)
for the ChangePolicyTimeout field in the SaveTariff() function in
file_store.cpp.

projects/stargazer/plugins/store/files/file_store.cpp

index cd1f0f9d723628e47d1369b0b49b4bc1b8277b7d..d5cfefaba6fb799bfa5e5f7070871660e63acd54 100644 (file)
@@ -1537,7 +1537,7 @@ std::string fileName = storeSettings.GetTariffsDir() + "/" + tariffName + ".tf";
     cf.WriteString("TraffType", TARIFF::TraffTypeToString(td.tariffConf.traffType));
     cf.WriteString("Period", TARIFF::PeriodToString(td.tariffConf.period));
     cf.WriteString("ChangePolicy", TARIFF::ChangePolicyToString(td.tariffConf.changePolicy));
     cf.WriteString("TraffType", TARIFF::TraffTypeToString(td.tariffConf.traffType));
     cf.WriteString("Period", TARIFF::PeriodToString(td.tariffConf.period));
     cf.WriteString("ChangePolicy", TARIFF::ChangePolicyToString(td.tariffConf.changePolicy));
-    cf.WriteString("ChangePolicyTimeout", formatTime(td.tariffConf.changePolicyTimeout));
+    cf.WriteTime("ChangePolicyTimeout", td.tariffConf.changePolicyTimeout);
     }
 
 return 0;
     }
 
 return 0;