mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #8502 from overleaf/ds-admin-user-info-part-2
User details page migration to react (Read only data) - part 2 GitOrigin-RevId: f0c0fe1e029a8a91021f151da5a2460ebe606de6
This commit is contained in:
parent
88575dc58e
commit
fceeef5b31
1 changed files with 9 additions and 0 deletions
9
services/web/frontend/js/shared/utils/formatDate.js
Normal file
9
services/web/frontend/js/shared/utils/formatDate.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
import moment from 'moment'
|
||||
|
||||
export function formatUtcDate(date) {
|
||||
if (date) {
|
||||
return moment(date).utc().format('D MMM YYYY, HH:mm:ss') + ' UTC'
|
||||
} else {
|
||||
return 'N/A'
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue