overleaf/services/web/frontend/js/shared/utils/formatDate.js
Davinder Singh fceeef5b31 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
2022-07-08 08:03:49 +00:00

9 lines
185 B
JavaScript

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