Fix bug on '%Y' and '%C' formats with negative years
Requested changes
This commit is contained in:
committed by
Victor Zverovich
parent
f88c020fc0
commit
aeb54b0dd9
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user