summaryrefslogtreecommitdiff
path: root/src/shared/dlt_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/dlt_common.c')
-rw-r--r--src/shared/dlt_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 8a538e8..4b56fc1 100644
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -640,6 +640,7 @@ DltReturnValue dlt_message_header_flags(DltMessage *msg, char *text, int textlen
if ((flags & DLT_HEADER_SHOW_TIME) == DLT_HEADER_SHOW_TIME) {
/* print received time */
time_t tt = msg->storageheader->seconds;
+ tzset();
localtime_r(&tt, &timeinfo);
strftime (buffer, sizeof(buffer), "%Y/%m/%d %H:%M:%S", &timeinfo);
snprintf(text, textlength, "%s.%.6d ", buffer, msg->storageheader->microseconds);