We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a601c commit b346262Copy full SHA for b346262
test/chronotest.cpp
@@ -8,14 +8,14 @@ using namespace std::chrono_literals;
8
9
TEST_CASE("ChronoTest.time_point_to_utc_string")
10
{
11
- chrono::date_point date = 2017y / std::chrono::February / 1;
+ auto date = chrono::date_point(2017y / std::chrono::February / 1);
12
13
CHECK("2017-02-01" == inf::chrono::to_string("%Y-%m-%d", date));
14
}
15
16
TEST_CASE("ChronoTest.time_point_to_string_custom_format")
17
18
19
20
21
CHECK("2017-01-02" == inf::chrono::to_string("%Y-%d-%m", date));
0 commit comments