summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-27 12:45:27 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-27 12:45:27 +0300
commita2c5c5e77fb879057c7ae21f1d09f4c6506ad1e5 (patch)
tree769043fd6c55233364d7bae89e0730ad9e16f5b8
parentacc40f4e70c8297ebb8c9b10dca36c024e03ee3c (diff)
fixes #4851 (В первый день прогноза вылезает дата обновления погоды)
-rw-r--r--protocols/Weather/src/weather_update.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Weather/src/weather_update.cpp b/protocols/Weather/src/weather_update.cpp
index cfc5e95a7a..a03e0aeeca 100644
--- a/protocols/Weather/src/weather_update.cpp
+++ b/protocols/Weather/src/weather_update.cpp
@@ -398,7 +398,6 @@ int CWeatherProto::GetWeatherData(MCONTACT hContact)
// writing current conditions
auto &curr = root["currentConditions"];
OBJLIST<WIDATAITEM> arValues(20);
- arValues.insert(new WIDATAITEM(L"Update", L"", curr["datetime"].as_mstring()));
getData(arValues, curr);
auto szIcon = curr["icon"].as_string();
@@ -425,6 +424,8 @@ int CWeatherProto::GetWeatherData(MCONTACT hContact)
// writing forecast
int iFore = 0;
+ db_set_ws(hContact, WEATHERCONDITION, "Update", curr["datetime"].as_mstring());
+
for (auto &fore : root["days"]) {
getData(arValues, fore);