Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/web/FileUtils.C
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace Wt {
#ifndef WT_FILESYSTEM_IMPL_STD_CLOCK_17
auto ftime = Wt::cpp17::filesystem::last_write_time(file);
auto systime = decltype(ftime)::clock::to_sys(ftime);
return std::chrono::system_clock::from_time_t(decltype(systime)::clock::to_time_t(systime));
return std::chrono::system_clock::time_point(std::chrono::duration_cast<std::chrono::system_clock::duration>(systime.time_since_epoch()));
#else // WT_FILESYSTEM_IMPL_STD_CLOCK_17
LOG_DEBUG("When using cpp17 or lower with std::filesystem, the result of this function is an approximation. Use boost::filesystem, instead of std::filesystem (see WT_CPP17_FILESYSTEM_IMPLEMENTATION) if this is a problem for your application.");
auto ftime = Wt::cpp17::filesystem::last_write_time(file);
Expand Down