MXS-1780 Report times using localtime instead of gmtime

This commit is contained in:
Johan Wikman 2018-11-07 10:26:43 +02:00
parent dd712a06fa
commit 2bd2b4a32e

View File

@ -1586,7 +1586,7 @@ static const int ISO_TIME_LEN = sizeof(ISO_TEMPLATE) - 1;
void timespec_to_iso(char* zIso, const timespec& ts)
{
tm tm;
gmtime_r(&ts.tv_sec, &tm);
localtime_r(&ts.tv_sec, &tm);
size_t i = strftime(zIso, ISO_TIME_LEN + 1, "%G-%m-%dT%H:%M:%S", &tm);
mxb_assert(i == 19);