Substitute QDateTime by boost::posix_time::ptime