Fix bug empty datetime