Commit a40e96d3 authored by Alexander Lapshin's avatar Alexander Lapshin

fixed shiftdateX bug

parent 86da7a7d
......@@ -17,9 +17,9 @@ std::vector<TimeJD> generate_dates(const TimeJD& sdate, const TimeJD& edate, dou
// return result;
//}
const int n = (int)(DaysInterval(sdate, edate) * 86400 / step_sec);
const auto n = (int)(DaysInterval(sdate, edate) * 86400 / step_sec);
for (int i = 0; i < n; ++i) {
result.emplace_back(ShiftDateX(sdate, step_sec * (i + 1)));
result.emplace_back(ShiftDate(sdate, step_sec * (i + 1)));
}
if (result.back() != edate) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment