Skip to content

Commit 0f1cda1

Browse files
committed
preety date format
1 parent ce2416c commit 0f1cda1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
app.filter('formatDate', ['$filter', function($filter) {
5656
return function(input, limit) {
5757
return input instanceof Date ?
58-
input.toISOString().substring(0, 19).replace('T', ' '):
59-
input.toString();
58+
input.toISOString().substring(0, 19).replace('T', ' ') :
59+
(input.toLocaleString || input.toString).apply(input);
6060
};
6161
}]);
6262

0 commit comments

Comments
 (0)