(date: string)
| 63 | } |
| 64 | |
| 65 | export function utc(date: string) { |
| 66 | if (date.match(/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}$/)) { |
| 67 | return new Date(`${date}Z`); |
| 68 | } |
| 69 | return new Date(date).toISOString(); |
| 70 | } |
nothing calls this directly
no outgoing calls
no test coverage detected