diff --git a/tz.h b/tz.h index b55d71b..5196517 100644 --- a/tz.h +++ b/tz.h @@ -1408,7 +1408,7 @@ format(const std::locale& loc, std::basic_string fmt, if (command && !modified) { if (info == nullptr) - throw std::runtime_error("Can not format local_time with %z"); + throw std::runtime_error("Can not format local_time with %Z"); else { fmt.replace(i - 1, 2, std::basic_string