diff -ruN daemontools-0.76.orig/src/multilog.c daemontools-0.76/src/multilog.c --- daemontools-0.76.orig/src/multilog.c 2001-07-12 19:49:49.000000000 +0300 +++ daemontools-0.76/src/multilog.c 2009-12-19 02:52:09.000000000 +0200 @@ -514,7 +514,8 @@ } if (!linelen) if (flagtimestamp) { - timestamp(line); + /* timestamp(line); */ + timestamplocal(line); line[25] = ' '; linelen = 26; } diff -ruN daemontools-0.76.orig/src/timestamp.c daemontools-0.76/src/timestamp.c --- daemontools-0.76.orig/src/timestamp.c 2001-07-12 19:49:49.000000000 +0300 +++ daemontools-0.76/src/timestamp.c 2009-12-19 02:53:02.000000000 +0200 @@ -1,7 +1,13 @@ +#include +#include +#include +#include #include "taia.h" #include "timestamp.h" static char hex[16] = "0123456789abcdef"; +time_t lt; +struct tm *t; void timestamp(char s[TIMESTAMP]) { @@ -18,3 +24,11 @@ s[i * 2 + 2] = hex[nowpack[i] & 15]; } } + +void timestamplocal(char s[TIMESTAMP]) +{ + lt = time(NULL); + t = localtime(<); + asctime_r(t, s); + s[24] = ' '; +} diff -ruN daemontools-0.76.orig/src/timestamp.h daemontools-0.76/src/timestamp.h --- daemontools-0.76.orig/src/timestamp.h 2001-07-12 19:49:49.000000000 +0300 +++ daemontools-0.76/src/timestamp.h 2009-12-19 02:52:17.000000000 +0200 @@ -4,5 +4,6 @@ #define TIMESTAMP 25 extern void timestamp(char *); +extern void timestamplocal(char *); #endif