mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02: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:
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'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user