Fix getting of datetime array from long/string array.