diff --git a/include/date/date.h b/include/date/date.h index 4e1e3f3..5188268 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -1722,6 +1722,7 @@ operator<<(std::basic_ostream& os, const year& y) os.fill('0'); os.flags(std::ios::dec | std::ios::internal); os.width(4 + (y < year{0})); + os.imbue(std::locale::classic()); os << static_cast(y); if (!y.ok()) os << " is not a valid year";