diff --git a/src/historytimecategorymodel.cpp b/src/historytimecategorymodel.cpp index c19a183676daef92c199bd744f7c58a4d37d1365..a5284d957f90f92abceaed82d0058bac06eea7a7 100644 --- a/src/historytimecategorymodel.cpp +++ b/src/historytimecategorymodel.cpp @@ -138,8 +138,8 @@ HistoryTimeCategoryModel::HistoryConst HistoryTimeCategoryModel::timeToHistoryCo * tm_year int years since 1900 * tm_wday int days since Sunday 0-6 */ - struct tm localCurrentTime = {}; - struct tm localPastTime = {}; + struct tm localCurrentTime; + struct tm localPastTime; ::localtime_r(¤tTime, &localCurrentTime); ::localtime_r(&time, &localPastTime);