From ffb876afa67403377241aaff24dbaf6d816d7647 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 17 Jun 2016 20:39:07 -0400 Subject: [PATCH] Fix bug in format --- tz.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tz.h b/tz.h index c6cc742..17c15ec 100644 --- a/tz.h +++ b/tz.h @@ -1408,7 +1408,7 @@ format(const std::locale& loc, std::basic_string format, else { auto info = zone->get_info(tp).first; - format.replace(i, 2, std::basic_string + format.replace(i - 1, 2, std::basic_string (info.abbrev.begin(), info.abbrev.end())); i += info.abbrev.size() - 1; }