fix bug with dates in log