diff options
Diffstat (limited to 'odb/boost/date-time/mysql/posix-time-traits.hxx')
-rw-r--r-- | odb/boost/date-time/mysql/posix-time-traits.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/boost/date-time/mysql/posix-time-traits.hxx b/odb/boost/date-time/mysql/posix-time-traits.hxx index 519dc83..9810aa5 100644 --- a/odb/boost/date-time/mysql/posix-time-traits.hxx +++ b/odb/boost/date-time/mysql/posix-time-traits.hxx @@ -63,6 +63,8 @@ namespace odb i.hour = t.hours (); i.minute = t.minutes (); i.second = t.seconds (); + + i.second_part = 0; } } }; @@ -116,6 +118,8 @@ namespace odb i.hour = t.hours (); i.minute = t.minutes (); i.second = t.seconds (); + + i.second_part = 0; } } }; @@ -160,10 +164,16 @@ namespace odb { is_null = false; i.neg = v.is_negative (); + + i.year = 0; + i.month = 0; i.day = 0; + i.hour = std::abs (v.hours ()); i.minute = std::abs (v.minutes ()); i.second = std::abs (v.seconds ()); + + i.second_part = 0; } } }; |