MXS-1780 Report times using localtime instead of gmtime
This commit is contained in:
parent
dd712a06fa
commit
2bd2b4a32e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user