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:
Davinder Singh 2022-07-07 11:26:47 +01:00 committed by Copybot
parent 88575dc58e
commit fceeef5b31

View 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'
}
}