Update chrono.h
This commit is contained in:
parent
c10a5e2433
commit
b8c40ccfae
@ -2204,7 +2204,7 @@ template <typename Char> struct formatter<std::tm, Char> {
|
||||
if (begin == end) return end;
|
||||
|
||||
end = detail::parse_chrono_format(begin, end, detail::tm_format_checker());
|
||||
// Replace default spec only if the new spec is not empty.
|
||||
// Replace default format_str only if the new spec is not empty.
|
||||
if (end != begin) format_str = {begin, detail::to_unsigned(end - begin)};
|
||||
return end;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user