Permalink
Browse files

#9 TI-1: Make undo work with interval actions

  • Loading branch information...
lauft committed Jul 23, 2018
1 parent cfdd368 commit cd7755bc6cd951b197bf61ebe6c5caaa30a0d180
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Interval.cpp
@@ -223,9 +223,9 @@ Interval Interval::fromJson (std::string jsonString)
}

json::string* start = (json::string*) json->_data["start"];
interval.range.start = Datetime(start->_data, "YmdTHnsZ");
interval.range.start = Datetime(start->_data);
json::string* end = (json::string*) json->_data["end"];
interval.range.end = Datetime(end->_data, "YmdTHnsZ");
interval.range.end = (end != nullptr) ? Datetime(end->_data) : 0;
}

return interval;

0 comments on commit cd7755b

Please sign in to comment.