git: d89f255a62cd - main - www/wt: Add missing patch file, correcting previous commit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 Dec 2025 20:34:55 UTC
The branch main has been updated by cs:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d89f255a62cdb3a910a67d4f0582b38b38fa5778
commit d89f255a62cdb3a910a67d4f0582b38b38fa5778
Author: Carlo Strub <cs@FreeBSD.org>
AuthorDate: 2025-12-07 20:34:10 +0000
Commit: Carlo Strub <cs@FreeBSD.org>
CommitDate: 2025-12-07 20:34:10 +0000
www/wt: Add missing patch file, correcting previous commit
PR: 291346
---
www/wt/files/patch-src_web_FileUtils.C | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/www/wt/files/patch-src_web_FileUtils.C b/www/wt/files/patch-src_web_FileUtils.C
new file mode 100644
index 000000000000..e8e9fda11bec
--- /dev/null
+++ b/www/wt/files/patch-src_web_FileUtils.C
@@ -0,0 +1,11 @@
+--- src/web/FileUtils.C.orig 2025-12-02 04:12:42 UTC
++++ src/web/FileUtils.C
+@@ -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);