mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-03 04:34:26 +02:00
Fix bug in format
This commit is contained in:
2
tz.h
2
tz.h
@@ -1408,7 +1408,7 @@ format(const std::locale& loc, std::basic_string<CharT, Traits> format,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto info = zone->get_info(tp).first;
|
auto info = zone->get_info(tp).first;
|
||||||
format.replace(i, 2, std::basic_string<CharT, Traits>
|
format.replace(i - 1, 2, std::basic_string<CharT, Traits>
|
||||||
(info.abbrev.begin(), info.abbrev.end()));
|
(info.abbrev.begin(), info.abbrev.end()));
|
||||||
i += info.abbrev.size() - 1;
|
i += info.abbrev.size() - 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user