Fix wchar_t tm formatting

This commit is contained in:
Vladislav Shchapov authored and Victor Zverovich committed 2021-09-15 07:33:24 -07:00
1 parent 92614ecbf9
commit d9fd695ac7
2 files changed
+9 -4

No files matched your search

+2
View File
@@ -261,6 +261,8 @@ TEST(xchar_test, chrono) {
EXPECT_EQ(fmt::format("The date is {:%Y-%m-%d %H:%M:%S}.", tm),
"The date is 2016-04-25 11:22:33.");
EXPECT_EQ(L"42s", fmt::format(L"{}", std::chrono::seconds(42)));
EXPECT_EQ(fmt::format(L"{:%F}", tm), L"2016-04-25");
EXPECT_EQ(fmt::format(L"{:%T}", tm), L"11:22:33");
}
TEST(xchar_test, color) {