Fix datetime issue.