(date = new Date(), separator = "-")
| 50 | } |
| 51 | |
| 52 | function formatDate(date = new Date(), separator = "-") { |
| 53 | const y = date.getFullYear(); |
| 54 | const m = String(date.getMonth() + 1).padStart(2, "0"); |
| 55 | const d = String(date.getDate()).padStart(2, "0"); |
| 56 | return [y, m, d].join(separator); |
| 57 | } |
| 58 | |
| 59 | class Task { |
| 60 | constructor(openid) { |
no outgoing calls
no test coverage detected