152
152
const auto now = m_state->clock->localtime();
153
153
const auto calendar_day = m_state->calendar_month->month().get();
154
154
if ((profile() == Desktop) && !DateTime::is_same_day(now, calendar_day))
155
begin = calendar_day.add_full (0, 0, 0, -calendar_day.hour(), -calendar_day.minute(), -calendar_day.seconds());
157
begin = now.add_full (0, 0, 0, 0, 0, -now.seconds());
159
159
std::vector<Appointment> upcoming;
160
160
for(const auto& a : m_state->calendar_upcoming->appointments().get())