diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /net-p2p/transmission-components/files/patch-libtransmission_session-alt-speeds.cc | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'net-p2p/transmission-components/files/patch-libtransmission_session-alt-speeds.cc')
| -rw-r--r-- | net-p2p/transmission-components/files/patch-libtransmission_session-alt-speeds.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-p2p/transmission-components/files/patch-libtransmission_session-alt-speeds.cc b/net-p2p/transmission-components/files/patch-libtransmission_session-alt-speeds.cc new file mode 100644 index 000000000000..2bcd3f11480c --- /dev/null +++ b/net-p2p/transmission-components/files/patch-libtransmission_session-alt-speeds.cc @@ -0,0 +1,19 @@ +--- libtransmission/session-alt-speeds.cc.orig 2025-10-15 08:50:14 UTC ++++ libtransmission/session-alt-speeds.cc +@@ -3,6 +3,7 @@ + // or any future license endorsed by Mnemosyne LLC. + // License text can be found in the licenses/ folder. + ++#include <chrono> + #include <fmt/chrono.h> + + #include "transmission.h" +@@ -105,7 +106,7 @@ void tr_session_alt_speeds::setActive(bool active, Cha + + [[nodiscard]] bool tr_session_alt_speeds::isActiveMinute(time_t time) const noexcept + { +- auto const tm = fmt::localtime(time); ++ auto const tm = *std::localtime(&time); + + size_t minute_of_the_week = tm.tm_wday * MinutesPerDay + tm.tm_hour * MinutesPerHour + tm.tm_min; + |
