Merge pull request #3960 from overleaf/cmg-binary-file
[BinaryFile] Reopening of Binary file React migration GitOrigin-RevId: 050e66e3321bd6579d44932b669fc0a31df06d18
This commit is contained in:
committed by
Copybot
parent
23c73b9bf1
commit
3dfcb95802
@@ -0,0 +1,20 @@
|
||||
import moment from 'moment'
|
||||
|
||||
moment.updateLocale('en', {
|
||||
calendar: {
|
||||
lastDay: '[Yesterday]',
|
||||
sameDay: '[Today]',
|
||||
nextDay: '[Tomorrow]',
|
||||
lastWeek: 'ddd, Do MMM YY',
|
||||
nextWeek: 'ddd, Do MMM YY',
|
||||
sameElse: 'ddd, Do MMM YY',
|
||||
},
|
||||
})
|
||||
|
||||
export function formatTime(date) {
|
||||
return moment(date).format('h:mm a')
|
||||
}
|
||||
|
||||
export function relativeDate(date) {
|
||||
return moment(date).calendar()
|
||||
}
|
||||
Reference in New Issue
Block a user