electorrent
Version:
An Electron/Node/AngularJS remote client app for uTorrent server
15 lines (13 loc) • 409 B
JavaScript
angular.module("torrentApp").filter('date', function() {
return function(epochtime) {
return moment(epochtime).fromNow();
};
});
angular.module("torrentApp").filter('releaseDate', function() {
return function(date) {
if (!date){
return "Release date unknown"
}
return moment(date, moment.ISO_8601).format("MMMM Do YYYY, HH:mm");
}
})