summaryrefslogtreecommitdiff
path: root/net-p2p/transmission-components/files/patch-utils_remote.cc
blob: 77f47c740d09bf29e6e8a647851d5c4ac4f45c0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- utils/remote.cc.orig	2025-10-15 08:53:57 UTC
+++ utils/remote.cc
@@ -8,6 +8,7 @@
 #include <cctype> /* isspace */
 #include <cinttypes> // PRId64
 #include <cerrno>
+#include <chrono>
 #include <cmath>
 #include <cstdio>
 #include <cstdlib>
@@ -900,7 +901,7 @@ static char* format_date(char* buf, size_t buflen, tim
 
 static char* format_date(char* buf, size_t buflen, time_t now)
 {
-    *fmt::format_to_n(buf, buflen - 1, "{:%a %b %d %T %Y}", fmt::localtime(now)).out = '\0';
+    *fmt::format_to_n(buf, buflen - 1, "{:%a %b %d %T %Y}", *std::localtime(&now)).out = '\0';
     return buf;
 }