mirror of
https://github.com/LibreOffice/online.git
synced 2025-07-29 12:01:08 +00:00
Update modifiedTime for local files unconditionally
Also teach logger to print timestamp object. Change-Id: Ia13836814c195cef92f5dafd8245c9958600876d
This commit is contained in:
@ -17,6 +17,9 @@
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
#include <Poco/DateTime.h>
|
||||
#include <Poco/DateTimeFormat.h>
|
||||
#include <Poco/DateTimeFormatter.h>
|
||||
#include <Poco/Logger.h>
|
||||
|
||||
namespace Log
|
||||
@ -170,6 +173,17 @@ namespace Log
|
||||
return lhs;
|
||||
}
|
||||
|
||||
inline StreamLogger& operator<<(StreamLogger& lhs, const Poco::Timestamp& rhs)
|
||||
{
|
||||
if (lhs.enabled())
|
||||
{
|
||||
lhs._stream << Poco::DateTimeFormatter::format(Poco::DateTime(rhs),
|
||||
Poco::DateTimeFormat::ISO8601_FRAC_FORMAT);
|
||||
}
|
||||
|
||||
return lhs;
|
||||
}
|
||||
|
||||
inline void operator<<(StreamLogger& lhs, const _end_marker&)
|
||||
{
|
||||
(void)end;
|
||||
|
Reference in New Issue
Block a user