title: Datetime-local not working with firebase-database
body: <p>I'm trying to insert 4 values into my firebase-database (Equipment, Type, start of downtime and end of downtime). The start and end of downtime values are in datetime-local. When I try inserting the values it only makes nodes for the first 2 values being equipment and type. I don't know why its not inserting the datetime-local values.</p>
  
  <p><strong>MY HTML</strong></p>
  
  <pre><code>    &lt;div class="row"&gt;
      &lt;div class="col-xs-12"&gt;
  
      &lt;div class="form-group col-xs-6 col-xs-offset-3" id="equipList"&gt;
        &lt;label for="selectequ"&gt;Select Equipment&lt;/label&gt;
         &lt;select class="form-control" id="selectequ" data-ng-model="equipment" 
            &gt;
          &lt;option data-ng-repeat="eq in allEquipments" &gt;{{eq}}&lt;/option&gt;
        &lt;/select&gt;
  
          {{equipment}}
      &lt;/div&gt;
  
          &lt;div class="form-group col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xs-offset-3" id="Type"&gt;
           &lt;label for="searchType"&gt;Search by Type:&lt;/label&gt;
           &lt;select class="form-control" id="searchType" data-ng-model="type"&gt;
              &lt;option value="" disabled="" selected="" style="display: none"&gt;Select type of maintenance&lt;/option&gt;
              &lt;option&gt;Corrective Maintenance&lt;/option&gt;
              &lt;option&gt;Preventive Maintenance&lt;/option&gt;
              &lt;option&gt;Standby&lt;/option&gt;
           &lt;/select&gt;
        &lt;/div&gt;
  
          {{type}}
  
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="row"&gt;
  
      &lt;div class="form-group col-xs-6 col-xs-offset-3"&gt;
        &lt;label for="date"&gt;Start of Downtime&lt;/label&gt;
          &lt;input type="datetime-local" class="form-control" placeholder="Day, Month, Year" data-ng-model="startDT"/&gt;
      &lt;/div&gt;
          {{startDT}}
      &lt;div class="form-group col-xs-6 col-xs-offset-3"&gt;
        &lt;label for="date"&gt;End of Downtime&lt;/label&gt;
          &lt;input type="datetime-local" class="form-control" placeholder="Day, Month, Year" data-ng-model="endDT"/&gt;
      &lt;/div&gt;
  
      {{endDT}}
  
      &lt;/div&gt;
  
  &lt;div class="row"&gt;
          &lt;div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" id="central"&gt;
              &lt;a class="btn cd-add-to-cart cd-add-to-cart:hover cd-add-to-cart:active" role="button" data-ng-click="manageDowntime()"&gt;MANAGE   &lt;span class="glyphicon glyphicon-tasks"&gt;&lt;/span&gt;&lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p><strong>MY ANGULARJS</strong></p>
  
  <pre><code>    /*global angular*/
  var app = angular.module('downtime', ['ngRoute', 'firebase']);
  
  app.config(['$routeProvider', function ($routeProvider) {
      'use strict';
      $routeProvider.when('/downtime', {
          templateUrl: 'downtime/downtime.html',
          controller: 'downtimeCtrl'
      });
  }]);
  
  app.controller('downtimeCtrl', ['$scope', '$firebaseObject', '$firebaseArray', function ($scope, $firebaseObject, $firebaseArray) {
      'use strict';
  
       $scope.allEquipments = [];
       $scope.allSystems = [];
  
      $scope.manageDowntime = function () {
          var doesExist = false;
          angular.forEach ($scope.data , function (d) {
          angular.forEach (d.equipments, function (e) {
          })
      });
          firebase.database().ref('downtime/' + $scope.equipment + '/downtime').child($scope.equipment).set({
              equipment: $scope.equipment,
              type : $scope.type,
              start: $scope.startDT,
              end: $scope.endDT
          });
  };
  
      var ref = firebase.database().ref();
          var data = ref.child("data");
          var list = $firebaseArray(data);
  
          list.$loaded().then(function(data) {
              $scope.data = data;
              angular.forEach ($scope.data , function (d) {
  
                $scope.allSystems.push(d.$id);  
  
                  angular.forEach (d.equipments, function (e) {
                      $scope.allEquipments.push(e.equipment);
                      console.log($scope.allEquipments);
                  })
              });
              console.log($scope.data);
          }).catch(function(error) {
              $scope.error = error;
          });
  
  
  }]);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Qc6V2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qc6V2.png" alt="enter image description here"></a></p>