mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04:00
fceeef5b31
User details page migration to react (Read only data) - part 2 GitOrigin-RevId: f0c0fe1e029a8a91021f151da5a2460ebe606de6
9 lines
185 B
JavaScript
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'
|
|
}
|
|
}
|