mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #1123 from sharelatex/as-fix-missing-dates
Don't show missing dates and show confirmed emails in admin console GitOrigin-RevId: 6866d7869ec852de89be35b7b3d0725dcc195e6e
This commit is contained in:
parent
4c9eee51df
commit
9d4c3039e7
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ define(['base', 'moment'], function(App, moment) {
|
||||||
'formatDate',
|
'formatDate',
|
||||||
() =>
|
() =>
|
||||||
function(date, format) {
|
function(date, format) {
|
||||||
|
if (!date) return 'N/A'
|
||||||
if (format == null) {
|
if (format == null) {
|
||||||
format = 'Do MMM YYYY, h:mm a'
|
format = 'Do MMM YYYY, h:mm a'
|
||||||
}
|
}
|
||||||
|
@ -34,5 +35,5 @@ define(['base', 'moment'], function(App, moment) {
|
||||||
|
|
||||||
App.filter('relativeDate', () => date => moment(date).calendar())
|
App.filter('relativeDate', () => date => moment(date).calendar())
|
||||||
|
|
||||||
return App.filter('fromNowDate', () => date => moment(date).fromNow())
|
App.filter('fromNowDate', () => date => moment(date).fromNow())
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue