Fix formatting bug with %Ez

This commit is contained in:
Howard Hinnant
2016-11-12 18:21:21 -08:00
parent 63e33bdf49
commit 44e0480087

2
date.h
View File

@@ -4019,7 +4019,7 @@ format(const std::locale& loc, std::basic_string<CharT, Traits> fmt,
if (!modified)
s.erase(s.find(':'), 1);
fmt.replace(i - 1 - modified, 2 + modified, s);
i += s.size() - 1;
i += 3;
}
}
command = false;