summaryrefslogtreecommitdiffstats
path: root/net/Socket.cpp
diff options
context:
space:
mode:
authorDarkByt31 <avihs.29@gmail.com>2019-09-06 15:26:30 +0530
committerMichael Meeks <michael.meeks@collabora.com>2019-09-06 13:25:41 +0200
commit8aea22a32b28728033c4f06a79f93e63b1322151 (patch)
tree468b701aba33fb6f8e0a026eface53a845e00e1c /net/Socket.cpp
parentandroid: add support for screen dimming from JS. (diff)
downloadonline-8aea22a32b28728033c4f06a79f93e63b1322151.tar.gz
online-8aea22a32b28728033c4f06a79f93e63b1322151.zip
tdf#107038 Poco::Timestamp replacement with std::chrono
Replaced Poco::DateTimeFormatter with Util::getHttpTimeNow Change-Id: I1a8591a434140270929406386218d08c71a888cc Reviewed-on: https://gerrit.libreoffice.org/78700 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'net/Socket.cpp')
-rw-r--r--net/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/Socket.cpp b/net/Socket.cpp
index cb5043414c..f5661c3dde 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -415,7 +415,7 @@ void StreamSocket::dumpState(std::ostream& os)
void StreamSocket::send(Poco::Net::HTTPResponse& response)
{
response.set("User-Agent", HTTP_AGENT_STRING);
- response.set("Date", Poco::DateTimeFormatter::format(Poco::Timestamp(), Poco::DateTimeFormat::HTTP_FORMAT));
+ response.set("Date", Util::getHttpTimeNow());
std::ostringstream oss;
response.write(oss);