Welcome to mirror list, hosted at ThFree Co, Russian Federation.

moment.js « filters « scripts « ngax « webroot « Server « Duplicati - github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: de9d29db39b150bbcc998ff8c0a85fd64eee3961 (plain)
1
2
3
4
5
6
7
8
backupApp.filter('moment', function (AppUtils) {
    // AppUtils is required as it sets up the locale
    return function (input, momentFn /*, ...params */) {
        var args = Array.prototype.slice.call(arguments, 2);
        momentObj = moment(input);
        return momentObj[momentFn].apply(momentObj, args);
    };
});