diff --git a/include/boost/date_time/time.hpp b/include/boost/date_time/time.hpp index 632f10d7f..1eafe8810 100644 --- a/include/boost/date_time/time.hpp +++ b/include/boost/date_time/time.hpp @@ -164,7 +164,7 @@ namespace date_time { } time_type operator+=(const time_duration_type& td) { - time_ = (time_system::get_time_rep(date(), time_of_day() + td)); + time_ = time_system::add_time_duration(time_,td); return time_type(time_); } //! subtract time durations @@ -174,7 +174,7 @@ namespace date_time { } time_type operator-=(const time_duration_type& td) { - time_ = (time_system::get_time_rep(date(), time_of_day() - td)); + time_ = time_system::subtract_time_duration(time_, td); return time_type(time_); }