Restore stream format state after using month_formatter::format_month