Merge pull request #25468 from overleaf/ii-flexible-licensing-invoice-date

[web] FL next invoice date formatting

GitOrigin-RevId: 5f4f86d4f11c7ee217ff806d26fc3f8a79e5affc
This commit is contained in:
ilkin-overleaf
2025-05-14 08:05:34 +00:00
committed by Copybot
parent 6d35305d7d
commit 21c035b8d5
3 changed files with 14 additions and 4 deletions
@@ -11,8 +11,13 @@ moment.updateLocale('en', {
},
})
export function formatTime(date: moment.MomentInput, format = 'h:mm a') {
return moment(date).format(format)
export function formatTime(
date: moment.MomentInput,
format = 'h:mm a',
utc = false
) {
const momentDate = utc ? moment.utc(date) : moment(date)
return momentDate.format(format)
}
export function relativeDate(date: moment.MomentInput) {