Fix handling of %Z

This commit is contained in:
Victor Zverovich
2025-04-12 08:37:15 -07:00
parent 6d69f0c5f2
commit b28214487d
3 changed files with 4 additions and 18 deletions

View File

@@ -1393,7 +1393,7 @@ class tm_writer {
}
void on_utc_offset(numeric_system ns) { format_utc_offset_impl(tm_, ns); }
void on_tz_name() { format_tz_name_impl(tm_); }
void on_tz_name() { out_ = std::copy_n("UTC", 3, out_); }
void on_year(numeric_system ns, pad_type pad) {
if (is_classic_ || ns == numeric_system::standard)