display next refresh date

This commit is contained in:
Athou
2013-05-22 16:10:50 +02:00
parent 97c2c12fe2
commit 0fdb714641
4 changed files with 33 additions and 6 deletions

View File

@@ -1,7 +1,11 @@
var module = angular.module('commafeed.filters', []);
module.filter('entryDate', function() {
return function(timestamp) {
return function(timestamp, defaultValue) {
if (!timestamp) {
return defaultValue;
}
var d = moment(timestamp);
var now = moment();
var formatted;