DateTime to string conversion in Logger

Permalink 6 6 Browser Info Environment
There's an error in the Logger class where an implode is being done on an array containing a DateTime object creating an object to string conversion exception.

To reproduce:
- Enable query logging under system & settings
- Fill out the default contact form in the elemental theme (I have a standard installation with elemental theme and non-empty website option during install).
- Check the logs under system & settings > reports > logs

My exception message from the logs:
Exception Occurred: C:\MAMP\htdocs\c5_8_2_1\concrete\src\Logging\Query\Logger.php:44 Object of class DateTime could not be converted to string (4096)


Status: New
Justin1978

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Page Picker+ (3.0)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.0.0

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, com_dotnet, Core, ctype, curl, date, dom, exif, fileinfo, filter, gd, hash, iconv, imagick, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 32M
sql.safe_mode - Off
upload_max_filesize - 32M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36