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