]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/files/file_store.cpp
Ticket 37. WriteTime() changed to WriteString() and formatTime() added
[stg.git] / projects / stargazer / plugins / store / files / file_store.cpp
index d5cfefaba6fb799bfa5e5f7070871660e63acd54..cd1f0f9d723628e47d1369b0b49b4bc1b8277b7d 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.WriteTime("ChangePolicyTimeout", td.tariffConf.changePolicyTimeout);
+    cf.WriteString("ChangePolicyTimeout", formatTime(td.tariffConf.changePolicyTimeout));
     }
 
 return 0;
     }
 
 return 0;