From b04dfd7f962d5095fcd59ba206f4fd1c4278b6d2 Mon Sep 17 00:00:00 2001 From: An Tao Date: Thu, 13 Jun 2024 17:11:03 +0800 Subject: [PATCH] Fix some compilation warnings (#2066) --- lib/src/AccessLogger.cc | 8 ++++---- lib/src/Utilities.cc | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/src/AccessLogger.cc b/lib/src/AccessLogger.cc index b7d6cd5d..4355e2b5 100644 --- a/lib/src/AccessLogger.cc +++ b/lib/src/AccessLogger.cc @@ -367,12 +367,12 @@ void AccessLogger::outputDate(trantor::LogStream &stream, { if (useLocalTime_) { - stream << trantor::Date::now().toCustomedFormattedStringLocal( + stream << trantor::Date::now().toCustomFormattedStringLocal( timeFormat_, showMicroseconds_); } else { - stream << trantor::Date::now().toCustomedFormattedString( + stream << trantor::Date::now().toCustomFormattedString( timeFormat_, showMicroseconds_); } } @@ -398,12 +398,12 @@ void AccessLogger::outputReqDate(trantor::LogStream &stream, { if (useLocalTime_) { - stream << req->creationDate().toCustomedFormattedStringLocal( + stream << req->creationDate().toCustomFormattedStringLocal( timeFormat_, showMicroseconds_); } else { - stream << req->creationDate().toCustomedFormattedString( + stream << req->creationDate().toCustomFormattedString( timeFormat_, showMicroseconds_); } } diff --git a/lib/src/Utilities.cc b/lib/src/Utilities.cc index fff417d6..ffc701f2 100644 --- a/lib/src/Utilities.cc +++ b/lib/src/Utilities.cc @@ -1039,9 +1039,9 @@ char *getHttpFullDate(const trantor::Date &date) return lastTimeString; } lastSecond = nowSecond; - date.toCustomedFormattedString("%a, %d %b %Y %H:%M:%S GMT", - lastTimeString, - sizeof(lastTimeString)); + date.toCustomFormattedString("%a, %d %b %Y %H:%M:%S GMT", + lastTimeString, + sizeof(lastTimeString)); return lastTimeString; }