
"use strict";

export default angular.module('lollipop.convertValueToDate', [])
    /**
     * Factory returning a method that converts an array of valid date parts (e.g.
     * [yyyy, mm, dd]) into a `Date` object by calling the constructor.
     *
     * @param Array
     * @return Date
     */
    .factory('convertValueToDate', () => value => new (Function.prototype.bind.apply(Date, [null].concat(toConsumableArray(value))))())
    .name;

function toConsumableArray(arr) {
    if (Array.isArray(arr)) {
        for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
            arr2[i] = arr[i];
        }
        return arr2;
    } else {
        return Array.from(arr);
    }
};


@@ -350,59 +350,25 @@
 new 
-(Function.prototype.bind.apply(Date, %5Bnull%5D.concat(
+Date(Date.UTC(...
 toCo
@@ -394,11 +394,8 @@
 ))))
-())
 %0A   

use utc so local time zone does not fuck us over