(Bug 4876) Fix timestamp when logfile is first opened