Date field mapping error with type [date] to [long]

Ok but what is the actual mapping when that happens?

Yes because it's mapped as this;

"time" : {
    "type" : "long"
}