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 0e33676 commit 8484e43Copy full SHA for 8484e43
strings/base_chrono.h
@@ -42,7 +42,7 @@ WINRT_EXPORT namespace winrt
42
43
static time_t to_time_t(time_point const& time) noexcept
44
{
45
- return static_cast<time_t>(std::chrono::system_clock::to_time_t(to_sys(time)));
+ return static_cast<time_t>(std::chrono::system_clock::to_time_t(to_sys(std::chrono::time_point_cast<std::chrono::system_clock::duration>(time))));
46
}
47
48
static time_point from_time_t(time_t time) noexcept
0 commit comments