Fix bug with dataTime object