convert timestamp to Date object when logging