diff options
| author | 2025-03-29 04:31:31 +0000 | |
|---|---|---|
| committer | 2025-03-29 04:33:29 +0000 | |
| commit | 8b5bccaa8c382cca1dfae3c985e6045f1c367e1f (patch) | |
| tree | 7161d8e2912031c7cc48e2c81cee8c2aa590c54f /modules/check.cpp | |
| parent | Remove support for in-query password comparison in sqlauth. (diff) | |
| parent | Release v4.7.0. (diff) | |
| download | inspircd++-8b5bccaa8c382cca1dfae3c985e6045f1c367e1f.tar.gz inspircd++-8b5bccaa8c382cca1dfae3c985e6045f1c367e1f.tar.bz2 inspircd++-8b5bccaa8c382cca1dfae3c985e6045f1c367e1f.zip | |
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/check.cpp')
| -rw-r--r-- | modules/check.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/check.cpp b/modules/check.cpp index eed6b1791..e7c73b8a4 100644 --- a/modules/check.cpp +++ b/modules/check.cpp @@ -2,7 +2,7 @@ * InspIRCd -- Internet Relay Chat Daemon * * Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions> - * Copyright (C) 2018-2023 Sadie Powell <sadie@witchery.services> + * Copyright (C) 2018-2023, 2025 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> @@ -42,9 +42,8 @@ private: static std::string FormatTime(time_t ts) { - std::string timestr(Time::ToString(ts, "%Y-%m-%d %H:%M:%S UTC (", true)); - timestr.append(ConvToStr(ts)); - timestr.push_back(')'); + auto timestr = Time::ToString(ts, Time::DEFAULT_LONG, true); + timestr += FMT::format(" ({})", ServerInstance->Time()); return timestr; } |
