From 10591ac477cc58475f850289c8c9dee90e3fae64 Mon Sep 17 00:00:00 2001 From: Filip Brcic Date: Tue, 18 May 2021 15:05:22 +0200 Subject: [PATCH] =?UTF-8?q?Added=20subseconds=3D0=20as=20default=20for=20f?= =?UTF-8?q?ormat(tm=E2=80=A6),=20because=20tests=20fail=20otherwise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/fmt/chrono.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index be2bb073..2a78a8b3 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -432,7 +432,7 @@ template struct formatter { } template - auto format(const std::tm& tm, FormatContext& ctx, int subseconds) const + auto format(const std::tm& tm, FormatContext& ctx, int subseconds = 0) const -> decltype(ctx.out()) { basic_memory_buffer tm_format; tm_format.append(specs.begin(), specs.end());