PLAT-605: make use of "localtime_r" rather than "localtime", which is not thread safe and can cause deadlocks within the libc
trace_exception: log the exception time as UTC