(date, needSub?: boolean)
| 91 | }; |
| 92 | |
| 93 | export const formatUTCDate = (date, needSub?: boolean) => { |
| 94 | let finalDate = date; |
| 95 | if (needSub) { |
| 96 | finalDate = date.subtract(1, "ms"); |
| 97 | } |
| 98 | return `${finalDate.utc().format("MMM D,YYYY h:mmA")} GMT`; |
| 99 | }; |
| 100 | |
| 101 | export const formatDate = ( |
| 102 | date, |
nothing calls this directly
no outgoing calls
no test coverage detected