Fix some compilation warnings (#2066)
This commit is contained in:
parent
de5a4a5f57
commit
b04dfd7f96
|
@ -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_);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue