Fix bug on '%Y' and '%C' formats with negative years

Requested changes
This commit is contained in:
Vladislav Shchapov
2021-10-16 15:03:57 -07:00
committed by Victor Zverovich
parent f88c020fc0
commit aeb54b0dd9
3 changed files with 173 additions and 179 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ TEST(chrono_test, time_point) {
auto sys_output = system_wcsftime(spec, &tm);
auto fmt_spec = std::wstring(L"{:").append(spec).append(L"}");
auto fmt_spec = fmt::format(L"{{:{}}}", spec);
EXPECT_EQ(sys_output, fmt::format(fmt_spec, t1));
EXPECT_EQ(sys_output, fmt::format(fmt_spec, tm));
}