We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f10b6dd commit e65ed43Copy full SHA for e65ed43
1 file changed
test/chrono-test.cc
@@ -339,6 +339,12 @@ TEST(chrono_test, local_time) {
339
TEST(chrono_test, tm) {
340
auto time = fmt::gmtime(290088000);
341
test_time(time);
342
+ if (fmt::detail::has_member_data_tm_gmtoff<std::tm>()) {
343
+ EXPECT_EQ(fmt::format(fmt::runtime("{:%z}"), time), "+0000");
344
+ EXPECT_EQ(fmt::format(fmt::runtime("{:%Ez}"), time), "+00:00");
345
+ EXPECT_EQ(fmt::format(fmt::runtime("{:%Oz}"), time), "+00:00");
346
+ EXPECT_EQ(fmt::format(fmt::runtime("{:%Z}"), time), "UTC");
347
+ }
348
}
349
350
TEST(chrono_test, daylight_savings_time_end) {
0 commit comments