diff options
Diffstat (limited to 'src/system/dlt-system-journal.c')
-rw-r--r-- | src/system/dlt-system-journal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/system/dlt-system-journal.c b/src/system/dlt-system-journal.c index 6612988..aa9ba52 100644 --- a/src/system/dlt-system-journal.c +++ b/src/system/dlt-system-journal.c @@ -165,6 +165,7 @@ void dlt_system_journal_get_timestamp(sd_journal *journal, MessageTimestamp *tim } time_secs = (time_t)(time_usecs / 1000000); + tzset(); localtime_r(&time_secs, &timeinfo); strftime(buffer_realtime_formatted, sizeof(buffer_realtime_formatted), "%Y/%m/%d %H:%M:%S", &timeinfo); |