fix #4485: wrong log date shown after logging with past date