From 97b5e92c3d1195c4e3b3dc8dea3183c06399414e Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 16 Aug 2017 16:59:56 +0100 Subject: Make the build reproducible by removing time related macros. The compile time on boot is not accurate as it will only change when the translation unit containing it is edited. The startup time in RPL_SERVERCREATED is a lot more useful than the compilation time. ngIRCd also implements this behaviour. --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index d54931644..a84e12b4a 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -539,7 +539,7 @@ void LocalUser::FullConnect() this->WriteNumeric(RPL_WELCOME, InspIRCd::Format("Welcome to the %s IRC Network %s", ServerInstance->Config->Network.c_str(), GetFullRealHost().c_str())); this->WriteNumeric(RPL_YOURHOSTIS, InspIRCd::Format("Your host is %s, running version %s", ServerInstance->Config->ServerName.c_str(), INSPIRCD_BRANCH)); - this->WriteNumeric(RPL_SERVERCREATED, InspIRCd::Format("This server was created %s %s", __TIME__, __DATE__)); + this->WriteNumeric(RPL_SERVERCREATED, InspIRCd::TimeString(ServerInstance->startup_time, "This server was created %H:%M:%S %b %d %Y")); const std::string& modelist = ServerInstance->Modes->GetModeListFor004Numeric(); this->WriteNumeric(RPL_SERVERVERSION, ServerInstance->Config->ServerName, INSPIRCD_BRANCH, modelist); -- cgit v1.2.3