date output fix