From: Elena Mamontova Date: Wed, 28 Dec 2016 13:32:32 +0000 (+0200) Subject: Ticket 37. WriteString() changed to WriteTime() and formatTime() remowed X-Git-Tag: 2.409~34 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/cee21ba9cc7f7e89724a98ee2507d520874435a6?ds=inline;hp=--cc Ticket 37. WriteString() changed to WriteTime() and formatTime() remowed for the ChangePolicyTimeout field in the SaveTariff() function in file_store.cpp. --- cee21ba9cc7f7e89724a98ee2507d520874435a6 diff --git a/projects/stargazer/plugins/store/files/file_store.cpp b/projects/stargazer/plugins/store/files/file_store.cpp index cd1f0f9d..d5cfefab 100644 --- a/projects/stargazer/plugins/store/files/file_store.cpp +++ b/projects/stargazer/plugins/store/files/file_store.cpp @@ -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("ChangePolicyTimeout", formatTime(td.tariffConf.changePolicyTimeout)); + cf.WriteTime("ChangePolicyTimeout", td.tariffConf.changePolicyTimeout); } return 0;