diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-12 12:41:23 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-12 13:12:48 +0200 |
| commit | 4070e3f3b270a4a8c91d4cf2b7942b842c95ea3d (patch) | |
| tree | 6872e110d87288b37b2475b22de63e6ae99055b0 /src | |
| parent | a774e29da150480594385daf4946010db9d8e391 (diff) | |
Make add_minutes() work correctly with milliseconds.
Diffstat (limited to 'src')
| -rw-r--r-- | src/local_time.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local_time.cc b/src/local_time.cc index 1c174e50..ed809d49 100644 --- a/src/local_time.cc +++ b/src/local_time.cc @@ -237,7 +237,7 @@ LocalTime::add_minutes (int m) { using namespace boost; - posix_time::ptime t(gregorian::date(_year, _month, _day), posix_time::time_duration(_hour, _minute, _second)); + posix_time::ptime t(gregorian::date(_year, _month, _day), posix_time::time_duration(_hour, _minute, _second, _millisecond * 1000)); t += posix_time::time_duration(0, m, 0); set (t); } |
