head 1.1; access; symbols pkgsrc-2026Q3:1.1.0.2 pkgsrc-2026Q3-base:1.1; locks; strict; comment @// @; 1.1 date 2026.09.20.18.02.49; author wiz; state Exp; branches; next ; commitid 2MF1kLEypkUu6oWG; desc @@ 1.1 log @fcitx5-chinese-addons: fix build with fmt 1.12 Bump PKGREVISION. @ text @$NetBSD$ fmt::localtime was removed in fmt 1.12. --- im/pinyin/customphrase.cpp.orig 2026-09-20 17:51:01.949877388 +0000 +++ im/pinyin/customphrase.cpp @@@@ -114,7 +114,10 @@@@ inline std::tm currentTm() { std::chrono::system_clock::time_point now = std::chrono::system_clock::now(); std::time_t currentTime = std::chrono::system_clock::to_time_t(now); - return fmt::localtime(currentTime); + + std::tm localtime{}; + localtime_r(¤tTime, &localtime); + return localtime; #endif } @