std::pair<double, double> segment = FindNextSegment();
- if (segment.first == 0 && segment.second == 0) {
- tm reference = Utility::LocalTime(Utility::GetTime());
- reference.tm_mday++;
- reference.tm_hour = 0;
- reference.tm_min = 0;
- reference.tm_sec = 0;
-
+ if (segment.first == 0 && segment.second == 0)
return;
- }
String downtimeName = Downtime::AddDowntime(GetCheckable(), GetAuthor(), GetComment(),
segment.first, segment.second,
} catch (const std::exception&) {
BOOST_THROW_EXCEPTION(ValidationError(this, { "child_options" }, "Invalid child_options specified"));
}
-}
\ No newline at end of file
+}