code: function (date) {
          var q = $q.defer();
  
          navigator.globalization.isDayLightSavingsTime(
            date,
            function (result) {
              q.resolve(result);
            },
            function (err) {
              q.reject(err);
            });
          return q.promise;
        }
docs: "date" parameter must be a JavaScript Date Object.