diff --git a/date.h b/date.h index 5476bf7..4780aa8 100644 --- a/date.h +++ b/date.h @@ -33,6 +33,7 @@ #include #include #include +#include #if !(__cplusplus >= 201402) # include #endif @@ -4665,10 +4666,10 @@ to_stream(std::basic_ostream& os, const CharT* fmt, auto d = static_cast(static_cast(fds.ymd.day())); if (d < 10) os << ' '; - os << d << ' ' + os << d << ' ' << make_time(duration_cast(fds.tod.to_duration())) << ' ' << fds.ymd.year(); - + } else // *fmt == 'x' {